Skip to content

Commit

Permalink
raise exception when uploading file has Chinese characters.
Browse files Browse the repository at this point in the history
  • Loading branch information
raxxar1024 committed Jun 24, 2017
1 parent ba1dd77 commit 8659dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiniu/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def upload_token(self, bucket, key=None, expires=3600, policy=None, strict_polic

scope = bucket
if key is not None:
scope = '{0}:{1}'.format(bucket, key)
scope = u'{0}:{1}'.format(bucket, key)

args = dict(
scope=scope,
Expand Down

0 comments on commit 8659dba

Please sign in to comment.