Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Mar 19, 2018
1 parent d98acfa commit 6188781
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions src/aliyun/base.py
Expand Up @@ -113,12 +113,6 @@ def _signature(self, method, data = None, headers = None, resource = None):
canonical_resource = resource or "/"

secret = appier.legacy.bytes(self.secret, force = True)
method = appier.legacy.bytes(method, force = True)
content_md5 = appier.legacy.bytes(content_md5, force = True)
content_type = appier.legacy.bytes(content_type, force = True)
date = appier.legacy.bytes(date, force = True)
canonical_headers = appier.legacy.bytes(canonical_headers, force = True)
canonical_resource = appier.legacy.bytes(canonical_resource, force = True)

base = "%s\n%s\n%s\n%s\n%s%s" % (
method,
Expand Down
2 changes: 1 addition & 1 deletion src/examples/app.py
Expand Up @@ -39,7 +39,7 @@

import appier

import base
from . import base

class AliyunApp(appier.WebApp):

Expand Down

0 comments on commit 6188781

Please sign in to comment.