Skip to content

Commit

Permalink
fix issue #45
Browse files Browse the repository at this point in the history
  • Loading branch information
wjo1212 committed Dec 22, 2017
1 parent 9fe67bc commit 94f4443
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion aliyun/log/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,13 @@ def canonicalized_resource(resource, params):
if params:
urlString = ''
for key, value in sorted(six.iteritems(params)):
urlString += "{0}={1}&".format(
urlString += u"{0}={1}&".format(
key, value.decode('utf8') if isinstance(value, six.binary_type) else value)
resource += '?' + urlString[:-1]
if six.PY3:
return resource
else:
return resource.encode('utf8')

return resource

Expand Down

0 comments on commit 94f4443

Please sign in to comment.