From 84ea6b08c0a4be0d093a831cb2f5402076bd065e Mon Sep 17 00:00:00 2001 From: Beto Noronha Date: Thu, 22 Apr 2021 10:03:55 -0300 Subject: [PATCH] fix bug in /search using GET method --- CHANGES.rst | 6 ++++++ stac/utils.py | 2 +- stac/version.py | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index b2bea28..32b02f6 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -9,6 +9,12 @@ Changes ======= +Version 0.9.0-11 (2021-04-22) +----------------------------- + +- Fix bug in /search using GET method (`#86 `_). + + Version 0.9.0-10 (2021-04-09) ----------------------------- diff --git a/stac/utils.py b/stac/utils.py index 163527c..e0547aa 100644 --- a/stac/utils.py +++ b/stac/utils.py @@ -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: diff --git a/stac/version.py b/stac/version.py index 4159d5e..0276b13 100644 --- a/stac/version.py +++ b/stac/version.py @@ -13,4 +13,4 @@ """ -__version__ = '0.9.0-10' +__version__ = '0.9.0-11'