Emulate the behaviour of the unmocked Requests library, where the
'encoding' attribute of Response objects is set to the charset specified
in the Content-Type header. Without this, response.text may in certain
situations get decoded to Unicode using the wrong encoding.
Emulate the behaviour of the unmocked Requests library, where the 'encoding' attribute of Response objects is set to the charset specified in the Content-Type header. Without this, response.text may in certain situations get decoded to Unicode using the wrong encoding.