Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Commit

Permalink
Merge pull request #87 from betonr/hotfix/search
Browse files Browse the repository at this point in the history
fix bug in /search using GET method
  • Loading branch information
raphaelrpl authored Apr 22, 2021
2 parents fc08029 + 84ea6b0 commit ed203cd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
Changes
=======

Version 0.9.0-11 (2021-04-22)
-----------------------------

- Fix bug in /search using GET method (`#86 <https://github.com/brazil-data-cube/stac.py/issues/86>`_).


Version 0.9.0-10 (2021-04-09)
-----------------------------

Expand Down
2 changes: 1 addition & 1 deletion stac/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def _get(url, params=None):

response = requests.post(url, json=params)
else:
if 'collections' in params and isinstance(params['collections'], Iterable):
if 'collections' in params and type(params['collections']) in (tuple, list):
params['collections'] = ','.join(params['collections'])
response = requests.get(url, params=params)
else:
Expand Down
2 changes: 1 addition & 1 deletion stac/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
"""


__version__ = '0.9.0-10'
__version__ = '0.9.0-11'

0 comments on commit ed203cd

Please sign in to comment.