Skip to content

Commit

Permalink
#183 testfix user agen ehader (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
vancamti authored Mar 29, 2023
1 parent f4cf67b commit f3deddc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crabpy/gateway/capakey.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def capakey_rest_gateway_request(url, headers={}, params={}):
:returns: Result of the call.
"""
try:
# calls to geoservices give a 403 if the user-agent is not set
headers["user-agent"] = "*"
res = requests.get(url, headers=headers, params=params)
res.raise_for_status()
return res
Expand Down

0 comments on commit f3deddc

Please sign in to comment.