Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
File Transfer Service
fts-rest
Commits
acf3c30d
Commit
acf3c30d
authored
Aug 25, 2016
by
Christophe Haen
Browse files
Propagate the verify flag down to requests
parent
f3ae89df
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/fts3/rest/client/request.py
View file @
acf3c30d
...
...
@@ -29,7 +29,11 @@ class Request(object):
self
.
ukey
=
ukey
self
.
passwd
=
passwd
self
.
access_token
=
access_token
self
.
verify
=
False
self
.
verify
=
verify
# Disable the warnings
if
not
verify
:
requests
.
packages
.
urllib3
.
disable_warnings
()
self
.
connectTimeout
=
connectTimeout
self
.
timeout
=
timeout
...
...
@@ -83,7 +87,7 @@ class Request(object):
_headers
[
'Authorization'
]
=
'Bearer '
+
self
.
access_token
response
=
self
.
session
.
request
(
method
=
method
,
url
=
str
(
url
),
data
=
body
,
headers
=
_headers
,
data
=
body
,
headers
=
_headers
,
verify
=
self
.
verify
,
timeout
=
(
self
.
connectTimeout
,
self
.
timeout
),
cert
=
(
self
.
ucert
,
self
.
ukey
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment