Skip to content

Commit

Permalink
✨ Add user agent to requests headers
Browse files Browse the repository at this point in the history
  • Loading branch information
dankolbman committed Nov 28, 2018
1 parent 6436438 commit d3b21d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dataservice/extensions/flask_indexd.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def new_session(self):
s = requests.Session()
s.auth = (current_app.config['INDEXD_USER'],
current_app.config['INDEXD_PASS'])
s.headers.update({'Content-Type': 'application/json'})
s.headers.update({'Content-Type': 'application/json',
'User-Agent': 'Kids First Dataservice'})
return s

def teardown(self, exception):
Expand Down

0 comments on commit d3b21d5

Please sign in to comment.