Skip to content
Snippets Groups Projects
Commit 0da5a4b6 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

PUT upload with JSON response based on Accept header.

parent 61606ae6
No related branches found
No related tags found
2 merge requests!93v0.7.6,!90V0.7.5
Pipeline #69086 passed
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment