pythongssapi / requests-gssapi

An authentication handler for using GSSAPI with Python Requests. Drop-in replacement for old requests-kerberos.
Other
32 stars 21 forks source link

Set `SanitizedResponse` content to bytes instead of string #48

Closed pR0Ps closed 7 months ago

pR0Ps commented 1 year ago

The content property of a Response object is expected to always be bytes (the text property should be a string).

This change fixes an issue where consumers of the library that were returned a SanitizedResponse object could fail because they expected the content attribute of it to be bytes instead of a string.