1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-24 22:04:16 +00:00

after additional tests with actual s3: k.set_contents_from_string is working

This commit is contained in:
Lukasz Biedrycki 2013-08-28 18:00:54 +02:00
parent 83bd151c57
commit 0a8bf2c9e4

View File

@ -111,7 +111,7 @@ class S3FilesStore(object):
if headers:
h.update(headers)
buf.seek(0)
return threads.deferToThread(k.set_contents_from_file, buf,
return threads.deferToThread(k.set_contents_from_string, buf.getvalue(),
headers=h, policy=self.POLICY)