Commit d5d99c66 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

HTTPUpload: Correctly unpack headers

Fixes #10337
parent e3a787f6
Pipeline #6705 passed with stages
in 4 minutes and 44 seconds
......@@ -217,7 +217,7 @@ def _upload_file(self, transfer):
message.props.request_headers.set_content_type(transfer.mime, None)
for name, value in transfer.headers:
for name, value in transfer.headers.items():
message.props.request_headers.append(name, value)
message.connect('wrote-headers', self._on_wrote_headers, transfer)
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