Commit 8b919544 authored by Philipp Hörist's avatar Philipp Hörist

HTTPUpload: Don't follow redirects

parent eda709de
Pipeline #4783 passed with stages
in 3 minutes and 3 seconds
......@@ -223,7 +223,9 @@ class HTTPUpload(BaseModule):
# Set CAN_REBUILD so chunks get discarded after they are beeing
# written to the network
message.set_flags(Soup.MessageFlags.CAN_REBUILD)
message.set_flags(Soup.MessageFlags.CAN_REBUILD |
Soup.MessageFlags.NO_REDIRECT)
message.props.request_body.set_accumulate(False)
message.props.request_headers.set_content_type(transfer.mime, None)
......
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