Skip to content

Commit

Permalink
Merge pull request #107 from golnazads/master
Browse files Browse the repository at this point in the history
fixed the issue with missing headers
  • Loading branch information
golnazads committed Jul 6, 2020
2 parents 31859e6 + 061acdf commit 4470d4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tugboat/views.py
Expand Up @@ -1425,13 +1425,15 @@ def post(self):
'fq': ['{!bitset}']
}

items = request.headers.items()
headers = {k: v for k, v in request.headers.items()}

# POST the query
# https://api.adsabs.harvard.edu/v1/vault/query
current_app.logger.info('Contacting vault/query ' + str(current_app.config['TESTING']))
r = client().post(
current_app.config['VAULT_QUERY_URL'],
data=bigquery_data,
data = bigquery_data,
headers = headers
)

Expand Down

0 comments on commit 4470d4c

Please sign in to comment.