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-flask
Commits
ca8ab428
Commit
ca8ab428
authored
Oct 14, 2021
by
Joao Pedro Lopes
Browse files
FTS-1735
: Set the User-Agent header with client version
parent
7249f684
Pipeline
#3126552
passed with stages
in 15 minutes and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/fts3/rest/client/request.py
View file @
ca8ab428
...
...
@@ -87,7 +87,10 @@ class Request:
raise
ServerError
(
str
(
code
))
def
method
(
self
,
method
,
url
,
body
=
None
,
headers
=
None
,
user
=
None
,
passw
=
None
):
_headers
=
{
"Accept"
:
"application/json"
}
_headers
=
{
"Accept"
:
"application/json"
,
"User-Agent"
:
"fts-rest-client/3.12.0"
,
}
if
headers
:
_headers
.
update
(
headers
)
if
self
.
access_token
:
...
...
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