Skip to content
  • Denis Laxalde's avatar
    [py3] Decode request's content before JSON loading it · 59eab509372e
    Denis Laxalde authored
    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.
    59eab509372e