mirror of https://github.com/scrapy/scrapy.git
fix syntax typo
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40417
This commit is contained in:
parent
072fed8d4a
commit
f61be3f078
|
|
@ -15,7 +15,7 @@ def canonical_string(method, path, headers, expires=None):
|
|||
interesting_headers = {}
|
||||
for key in headers:
|
||||
lk = key.lower()
|
||||
if lk in set('content-md5', 'content-type', 'date') or lk.startswith(AMAZON_HEADER_PREFIX):
|
||||
if lk in set(['content-md5', 'content-type', 'date']) or lk.startswith(AMAZON_HEADER_PREFIX):
|
||||
interesting_headers[lk] = headers[key].strip()
|
||||
|
||||
# these keys get empty strings if they don't exist
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ class S3ImagesPipeline(BaseImagesPipeline):
|
|||
def s3request(self, key, method, body=None, headers=None):
|
||||
url = 'http://%s.s3.amazonaws.com/%s' % (self.bucket_name, key)
|
||||
req = Request(url, method=method, body=body, headers=headers)
|
||||
sign_request(req, self.access_key, self.secret_keself.secret_keyy)
|
||||
sign_request(req, self.access_key, self.secret_key)
|
||||
return req
|
||||
|
||||
def image_downloaded(self, response, request, info):
|
||||
|
|
|
|||
Loading…
Reference in New Issue