Skip to content

Commit

Permalink
Merge pull request #4346 from PascalEgn/add_json_header
Browse files Browse the repository at this point in the history
headers: add content-type json
  • Loading branch information
PascalEgn authored Jul 24, 2024
2 parents ce6141e + c73dd27 commit 19760f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inspirehep/modules/workflows/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ def get_validation_errors(data, schema):
def _get_headers_for_hep():
return {
"accept": "application/vnd+inspire.record.raw+json",
"content-type": "application/json",
"Authorization": "Bearer {token}".format(
token=current_app.config["AUTHENTICATION_TOKEN"]
),
Expand All @@ -564,6 +565,7 @@ def _get_headers_for_hep():
def _get_headers_for_hep_root_table_request():
return {
"accept": "application/json",
"content-type": "application/json",
"Authorization": "Bearer {token}".format(
token=current_app.config["AUTHENTICATION_TOKEN"]
),
Expand Down

0 comments on commit 19760f7

Please sign in to comment.