[py3] Decode request's content before JSON loading it
In Python3, json.load() only accepts text content. So we decode _cw.content's value using request's encoding before passing it to json.load(). As a consequence of using .getvalue() on BytesIO (content is a BytesIO), we no longer need to .seek() after reading the content.
Please register or sign in to comment