Skip to content
This repository was archived by the owner on Jun 29, 2023. It is now read-only.

Commit 1ff29e9

Browse files
authored
Merge pull request #11 from roman-mueller/master
Add exact headers of a website request to API call
2 parents 107d372 + 659b703 commit 1ff29e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mvg_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616

1717
def _perform_api_request(url):
18-
resp = requests.get(url, headers={'X-MVG-Authorization-Key': api_key})
18+
resp = requests.get(url, headers={'X-MVG-Authorization-Key': api_key, 'User-Agent': 'python-mvg-api/1 (+https://github.com/leftshift/python_mvg_api)', 'Accept': 'application/json'})
1919
return resp.json()
2020

2121

0 commit comments

Comments
 (0)