Commit 0da5a4b6 authored by Markus Scheidgen's avatar 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
......@@ -315,7 +315,7 @@ class UploadListResource(Resource):
upload.process_upload()'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.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment