You need to use `resp.raw.read(decode_content=False)`. `raw.read` does decoding per default.