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

prevent overwrite Header by HTTPRequestOption function #138

Merged
merged 1 commit into from Jul 16, 2022

Conversation

zreigz
Copy link
Contributor

@zreigz zreigz commented Jul 15, 2022

Fixes: #109

This PR prevents the situation when the Header "Content-Type" for type HTTPRequestOption func(req *http.Request) function is overwritten. I have implemented my own HTTPRequestOption function where I set it for multipart/form-data; boundary= to be able to upload files but finally, the req Header was different.

@zreigz
Copy link
Contributor Author

zreigz commented Jul 15, 2022

@Yamashou PTAL

@Yamashou
Copy link
Owner

@zreigz LGTM!
Thak you!

@zreigz
Copy link
Contributor Author

zreigz commented Jul 15, 2022

@Yamashou can you create the new release after you merge this PR.

@Yamashou Yamashou merged commit de74cd1 into Yamashou:master Jul 16, 2022
@Yamashou
Copy link
Owner

@zreigz
Copy link
Contributor Author

zreigz commented Jul 18, 2022

@Yamashou thanks a lot

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.

Client.Post should not override Content-Type header
2 participants