Skip to content

Commit 631d4d6

Browse files
committed
fix URI unescape deprecation
1 parent 9d1268f commit 631d4d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/azure_blob/canonicalized_resource.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class CanonicalizedResource # :nodoc:
55
def initialize(uri, account_name, service_name: nil, url_safe: true)
66
# This next line is needed because CanonicalizedResource
77
# need to be escaped for auhthorization headers, but not SAS tokens
8-
path = url_safe ? uri.path : URI::DEFAULT_PARSER.unescape(uri.path)
8+
path = url_safe ? uri.path : URI::RFC2396_PARSER.unescape(uri.path)
99
resource = "/#{account_name}#{path.empty? ? "/" : path}"
1010
resource = "/#{service_name}#{resource}" if service_name
1111
params = CGI.parse(uri.query.to_s)

0 commit comments

Comments
 (0)