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

Client.Post should not override Content-Type header #109

Closed
WithoutPants opened this issue Apr 6, 2022 · 1 comment · Fixed by #138
Closed

Client.Post should not override Content-Type header #109

WithoutPants opened this issue Apr 6, 2022 · 1 comment · Fixed by #138

Comments

@WithoutPants
Copy link

I am trying to submit binary data in a graphql request using a multipart/form-data request type. I am setting the request Content-Type header in a HTTPRequestOption function. However, this header value is being overwritten in Client.Post as it sets the Content-Type to application/json; charset=utf-8. The header should only be set if it has not already been set.

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 a pull request may close this issue.

2 participants