Skip to content

fix(client): handle Content-Type with charset in error responses#64

Merged
fguillot merged 1 commit into
mainfrom
fix/content-type-check
Mar 24, 2026
Merged

fix(client): handle Content-Type with charset in error responses#64
fguillot merged 1 commit into
mainfrom
fix/content-type-check

Conversation

@fguillot
Copy link
Copy Markdown
Member

Use startswith instead of exact match for Content-Type check so that values like "application/json; charset=utf-8" are correctly recognized as JSON, allowing error messages to be extracted from the response body.

Use startswith instead of exact match for Content-Type check so that
values like "application/json; charset=utf-8" are correctly recognized
as JSON, allowing error messages to be extracted from the response body.
@fguillot fguillot merged commit 6a09c64 into main Mar 24, 2026
6 checks passed
@fguillot fguillot deleted the fix/content-type-check branch March 24, 2026 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant