Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bugfix: use extra headers -- allows Requester Pays

for buckets you don't own.
Patch from http://arxiv.org/help/bulk_data_s3
  • Loading branch information...
commit 1600d5a151e5e3c4b14bed2888bfbe9b4f67fada 1 parent 0151fa4
Brendan O'Connor authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  S3/S3.py
3  S3/S3.py
View
@@ -60,6 +60,9 @@ class S3Request(object):
def __init__(self, s3, method_string, resource, headers, params = {}):
self.s3 = s3
self.headers = SortedDict(headers or {}, ignore_case = True)
+ # Add in any extra headers from s3 config object
+ if self.s3.config.extra_headers:
+ self.headers.update(self.s3.config.extra_headers)
self.resource = resource
self.method_string = method_string
self.params = params
Please sign in to comment.
Something went wrong with that request. Please try again.