Skip to content

Commit

Permalink
Use URI::DEFAULT_PARSER instead of URI::Parser.new
Browse files Browse the repository at this point in the history
  • Loading branch information
Nishnha authored Jan 6, 2023
1 parent a50e3e7 commit 1b03ea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/lib/dependabot/clients/bitbucket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def compare(repo, previous_tag, new_tag)

def get(url)
response = Excon.get(
URI::Parser.new.escape(url),
URI::DEFAULT_PARSER.escape(url),
user: credentials&.fetch("username", nil),
password: credentials&.fetch("password", nil),
# Setting to false to prevent Excon retries, use BitbucketWithRetries for retries.
Expand Down

0 comments on commit 1b03ea1

Please sign in to comment.