We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9c6347 commit 6b4d0fcCopy full SHA for 6b4d0fc
mapswipe_workers/mapswipe_workers/utils/api_calls.py
@@ -30,7 +30,7 @@ def retry_get(url, retries=3, timeout=4, to_osmcha: bool = False):
30
with requests.Session() as session:
31
session.mount("https://", HTTPAdapter(max_retries=retry))
32
if to_osmcha:
33
- headers = {"Authorization": OSMCHA_API_KEY}
+ headers = {"Authorization": f"Token {OSMCHA_API_KEY}"}
34
return session.get(url, timeout=timeout, headers=headers)
35
else:
36
return session.get(url, timeout=timeout)
0 commit comments