Skip to content

Commit 0c70f56

Browse files
committed
Use RFC2396_PARSER explicitly to avoid the warning.
1 parent a1d2941 commit 0c70f56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry-ruby/lib/sentry/net/http.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def extract_request_info(req)
6666
# IPv6 url could look like '::1/path', and that won't parse without
6767
# wrapping it in square brackets.
6868
hostname = address =~ Resolv::IPv6::Regex ? "[#{address}]" : address
69-
uri = req.uri || URI.parse(URI::DEFAULT_PARSER.escape("#{use_ssl? ? 'https' : 'http'}://#{hostname}#{req.path}"))
69+
uri = req.uri || URI.parse(URI::RFC2396_PARSER.escape("#{use_ssl? ? 'https' : 'http'}://#{hostname}#{req.path}"))
7070
url = "#{uri.scheme}://#{uri.host}#{uri.path}" rescue uri.to_s
7171

7272
result = { method: req.method, url: url }

0 commit comments

Comments
 (0)