Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
0da5a4b6
Commit
0da5a4b6
authored
Feb 12, 2020
by
Markus Scheidgen
Browse files
PUT upload with JSON response based on Accept header.
parent
61606ae6
Pipeline
#69086
passed with stages
in 17 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nomad/app/api/upload.py
View file @
0da5a4b6
...
...
@@ -315,7 +315,7 @@ class UploadListResource(Resource):
upload
.
process_upload
()
logger
.
info
(
'initiated processing'
)
if
bool
(
request
.
args
.
get
(
'token'
,
False
)):
if
bool
(
request
.
args
.
get
(
'token'
,
False
))
and
request
.
headers
.
get
(
'Accept'
,
''
)
!=
'application/json'
:
raise
DisableMarshalling
(
'''
Thanks for uploading your data to nomad.
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment