(self)
| 154 | self.headers['x-amz-request-payer'] = 'requester' |
| 155 | |
| 156 | def update_timestamp(self): |
| 157 | if "date" in self.headers: |
| 158 | del(self.headers["date"]) |
| 159 | self.headers["x-amz-date"] = time.strftime("%a, %d %b %Y %H:%M:%S +0000", time.gmtime()) |
| 160 | |
| 161 | def use_signature_v2(self): |
| 162 | if self.s3.endpoint_requires_signature_v4: |