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
761037f8
Commit
761037f8
authored
Nov 02, 2021
by
Joao Pedro Lopes
Browse files
FTS-1735
: Set the User-Agent header with client version
parent
c9ecff88
Pipeline
#3195001
passed with stage
in 2 minutes and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/fts3/rest/client/pycurlRequest.py
View file @
761037f8
...
...
@@ -129,7 +129,7 @@ class PycurlRequest(object):
elif
method
==
'PUT'
:
self
.
curl_handle
.
setopt
(
pycurl
.
UPLOAD
,
True
)
_headers
=
{
'Accept'
:
'application/json'
}
_headers
=
{
'Accept'
:
'application/json'
,
"User-Agent"
:
"fts-rest-client/3.11.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