From 5fcdec8a0c7c94bfba6c31d55475cf7fe0eacf23 Mon Sep 17 00:00:00 2001 From: Timm Fitschen <t.fitschen@indiscale.com> Date: Thu, 3 Nov 2022 10:43:04 +0100 Subject: [PATCH] EHN: support for http proxies --- src/caosdb/utils/server_side_scripting.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/caosdb/utils/server_side_scripting.py b/src/caosdb/utils/server_side_scripting.py index 663178dc..7e5ee439 100644 --- a/src/caosdb/utils/server_side_scripting.py +++ b/src/caosdb/utils/server_side_scripting.py @@ -30,7 +30,8 @@ from lxml import etree from caosdb.connection.connection import get_connection 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): @@ -63,6 +64,7 @@ def _make_multipart_request(call, pos_args, opts, files): filename=filename)) body, headers = multipart_encode(parts) + body = ReadableMultiparts(body) return body, headers -- GitLab