mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-27 15:58:06 -05:00
fix sr image uploading
This commit is contained in:
@@ -53,7 +53,7 @@ def make_header(verb, date, amz_headers, resource, content_type):
|
||||
return base64.encodestring(h.digest()).strip()
|
||||
|
||||
def send_file(filename, resource, content_type, acl, rate, meter):
|
||||
date = datetime.utcnow().strftime("%a, %d %b %Y %X GMT")
|
||||
date = datetime.utcnow().strftime("%a, %d %b %Y %H:%M:%S GMT")
|
||||
amz_headers = {'x-amz-acl': acl}
|
||||
|
||||
auth_header = make_header('PUT', date, amz_headers, resource, content_type)
|
||||
|
||||
Reference in New Issue
Block a user