We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2793d1a + ffd2a3c commit 33ceaa0Copy full SHA for 33ceaa0
qiniu/auth.py
@@ -264,8 +264,10 @@ def token_of_request(
264
data += "\n"
265
266
if content_type and content_type != "application/octet-stream" and body:
267
- # data += body.decode(encoding='UTF-8')
268
- data += body
+ if isinstance(body,bytes):
+ data += body.decode(encoding='UTF-8')
269
+ else:
270
+ data += body
271
return '{0}:{1}'.format(self.__access_key, self.__token(data))
272
273
def qiniu_headers(self, headers):
0 commit comments