Skip to content

Commit 393bc86

Browse files
authored
Fix array normalization (contentful#34)
1 parent 2fff819 commit 393bc86

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# CHANGELOG
22

33
## Unreleased
4+
### Fixed
5+
* Ensure all arrays sent as parameters to the API are properly serialized.
46

57
## v1.9.0
68
### Added

contentful/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ def _normalize_query(self, query):
513513

514514
for k, v in query.items():
515515
if isinstance(v, list):
516-
query[k] = ','.join(v)
516+
query[k] = ','.join([str(e) for e in v])
517517

518518
def _http_get(self, url, query):
519519
"""

0 commit comments

Comments
 (0)