Skip to content

Commit

Permalink
added content-type for bigquery requests
Browse files Browse the repository at this point in the history
  • Loading branch information
marblestation committed May 3, 2019
1 parent 39d7f56 commit cd01b73
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion authoraffsrv/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ def get_solr_data(bibcodes, cutoff_year, start=0, sort='date desc'):
'fq': '{!bitset}'
}

headers = {'Authorization':'Bearer '+current_app.config['AUTHOR_AFFILIATION_SERVICE_ADSWS_API_TOKEN']}
headers = {
'Authorization': 'Bearer '+current_app.config['AUTHOR_AFFILIATION_SERVICE_ADSWS_API_TOKEN'],
'Content-Type': 'big-query/csv',
}

try:
response = client().post(
Expand Down

0 comments on commit cd01b73

Please sign in to comment.