Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-pylib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-pylib
Commits
5fcdec8a
Verified
Commit
5fcdec8a
authored
2 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
EHN: support for http proxies
parent
dd5c33bd
No related branches found
No related tags found
2 merge requests
!79
Release 0.10.0
,
!75
F http proxy
Pipeline
#29949
failed
2 years ago
Stage: code_style
Stage: linting
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/caosdb/utils/server_side_scripting.py
+3
-1
3 additions, 1 deletion
src/caosdb/utils/server_side_scripting.py
with
3 additions
and
1 deletion
src/caosdb/utils/server_side_scripting.py
+
3
−
1
View file @
5fcdec8a
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment