Skip to content

Commit 67eeb84

Browse files
authored
Add colon to safe characters
This matches the output from generating a SAS token using Azure portal.
1 parent 4306898 commit 67eeb84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

azure-storage-blob/azure/storage/blob/sharedaccesssignature.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,5 +271,5 @@ def get_token(self):
271271
# a conscious decision was made to exclude the timestamp in the generated token
272272
# this is to avoid having two snapshot ids in the query parameters when the user appends the snapshot timestamp
273273
exclude = [_BlobQueryStringConstants.SIGNED_TIMESTAMP]
274-
return '&'.join(['{0}={1}'.format(n, url_quote(v))
274+
return '&'.join(['{0}={1}'.format(n, url_quote(v, safe="/:"))
275275
for n, v in self.query_dict.items() if v is not None and n not in exclude])

0 commit comments

Comments
 (0)