Skip to content

Commit

Permalink
ENH: Add python version to user-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
dskarls committed Aug 24, 2020
1 parent 09216d6 commit 9c006ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kim_query/kim_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ def _send_query(params, endpoint):
if endpoint is not None:
url = ("/").join((url, endpoint))

headers = {"User-Agent": f"kim-query {__version__} ({platform.platform()})"}
headers = {
"User-Agent": f"kim-query {__version__} (Python "
f"{platform.python_version()}; {platform.platform()})"
}

return requests.post(url, data=params, headers=headers).json()

Expand Down

0 comments on commit 9c006ec

Please sign in to comment.