Skip to content
Snippets Groups Projects
Verified Commit 5fcdec8a authored by Timm Fitschen's avatar Timm Fitschen
Browse files

EHN: support for http proxies

parent dd5c33bd
No related branches found
No related tags found
2 merge requests!79Release 0.10.0,!75F http proxy
Pipeline #29949 failed
...@@ -30,7 +30,8 @@ from lxml import etree ...@@ -30,7 +30,8 @@ from lxml import etree
from caosdb.connection.connection import get_connection from caosdb.connection.connection import get_connection
from caosdb.connection.utils import urlencode from caosdb.connection.utils import urlencode
from caosdb.connection.encode import MultipartParam, multipart_encode from caosdb.connection.encode import (MultipartParam, multipart_encode,
ReadableMultiparts)
def _make_params(pos_args, opts): def _make_params(pos_args, opts):
...@@ -63,6 +64,7 @@ def _make_multipart_request(call, pos_args, opts, files): ...@@ -63,6 +64,7 @@ def _make_multipart_request(call, pos_args, opts, files):
filename=filename)) filename=filename))
body, headers = multipart_encode(parts) body, headers = multipart_encode(parts)
body = ReadableMultiparts(body)
return body, headers return body, headers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment