GetStream / stream-python

Python Client - Build Activity Feeds & Streams with GetStream.io
https://getstream.io
BSD 3-Clause "New" or "Revised" License
142 stars 40 forks source link

Set encoding to match RFC if none is present #68

Closed Link512 closed 6 years ago

Link512 commented 6 years ago

Summary:

Since the library uses custom json parsing and not the one from requests.Response , the encoding of the data has to be ensured if it is not specified

Merger checklist:

Link512 commented 6 years ago

the requests library already does this if you call response.json() . Since we use custom parsing we need to emulate that

dwightgunning commented 6 years ago

Discussed and agreed that this edge case doesn't warrant a change.