Skip to content

Commit

Permalink
Merge pull request #191 from OnroerendErfgoed/develop
Browse files Browse the repository at this point in the history
release 0.16.1
  • Loading branch information
cedrikv authored Mar 29, 2023
2 parents 0f6d3d8 + 521ce0a commit a0de9d0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
0.16.1 (29-03-2023)
-------------------

- Add user agent header to geo.api calls (#190)

0.16.0 (29-03-2023)
-------------------

Expand Down
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
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

setup(
name='crabpy',
version='0.16.0',
version='0.16.1',
description='Interact with geographical webservices by Informatie Vlaanderen.',
long_description=open('README.rst').read() + '\n\n' +
open('CHANGES.rst').read(),
Expand Down

0 comments on commit a0de9d0

Please sign in to comment.