Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set SanitizedResponse content to bytes instead of string #48

Merged
merged 1 commit into from
Feb 16, 2024
Merged

Set SanitizedResponse content to bytes instead of string #48

merged 1 commit into from
Feb 16, 2024

Conversation

pR0Ps
Copy link
Contributor

@pR0Ps pR0Ps commented Mar 25, 2023

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.

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.

Signed-off-by: Carey Metcalfe <[email protected]>
@jborean93 jborean93 merged commit f978789 into pythongssapi:main Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants