We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1d2941 commit 0c70f56Copy full SHA for 0c70f56
sentry-ruby/lib/sentry/net/http.rb
@@ -66,7 +66,7 @@ def extract_request_info(req)
66
# IPv6 url could look like '::1/path', and that won't parse without
67
# wrapping it in square brackets.
68
hostname = address =~ Resolv::IPv6::Regex ? "[#{address}]" : address
69
- uri = req.uri || URI.parse(URI::DEFAULT_PARSER.escape("#{use_ssl? ? 'https' : 'http'}://#{hostname}#{req.path}"))
+ uri = req.uri || URI.parse(URI::RFC2396_PARSER.escape("#{use_ssl? ? 'https' : 'http'}://#{hostname}#{req.path}"))
70
url = "#{uri.scheme}://#{uri.host}#{uri.path}" rescue uri.to_s
71
72
result = { method: req.method, url: url }
0 commit comments