Commit 01a8fbf9 authored by Philipp Hörist's avatar Philipp Hörist

[httpupload] Send content-length in header

parent 3c094677
......@@ -302,7 +302,8 @@ class Base(object):
_('Uploading file via HTTP...'))
try:
headers = {'User-Agent': 'Gajim %s' % gajim.version,
'Content-Type': file.mime}
'Content-Type': file.mime,
'Content-Length': file.size}
request = Request(
file.put, data=file.stream, headers=headers, method='PUT')
log.info("Opening Urllib upload request...")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment