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

Modifying the content-type header breaks some integrations #71

Open
viniciuspinto opened this issue Dec 20, 2023 · 1 comment
Open

Modifying the content-type header breaks some integrations #71

viniciuspinto opened this issue Dec 20, 2023 · 1 comment

Comments

@viniciuspinto
Copy link

The line [1] adds the charset to the Content-Type header and this breaks the integration with some services. In my tests, calling a Bedrock model was returning "The provided Content Type is invalid or nor supported for this model". After removing the line, the issue was gone.

[1] https://github.com/tedder/requests-aws4auth/blob/9e9e7bf25ad1962cd8dd77064216ee4cab8ca520/requests_aws4auth/aws4auth.py#L563C57-L563C72

@tedder
Copy link
Owner

tedder commented Dec 20, 2023

Hmm, if you remove it and submit a PR, do all the unit tests pass?

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

No branches or pull requests

2 participants