diff --git a/common/lib/dependabot/clients/bitbucket.rb b/common/lib/dependabot/clients/bitbucket.rb index 3d4d4878549..0a4ecf74297 100644 --- a/common/lib/dependabot/clients/bitbucket.rb +++ b/common/lib/dependabot/clients/bitbucket.rb @@ -297,7 +297,7 @@ def compare(repo, previous_tag, new_tag) sig { params(url: String).returns(Excon::Response) } def get(url) response = Excon.get( - URI::DEFAULT_PARSER.escape(url), + URI::RFC2396_PARSER.escape(url), user: credentials&.fetch("username", nil), password: credentials&.fetch("password", nil), # Setting to false to prevent Excon retries, use BitbucketWithRetries for retries.