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

Always set http request header CONTENT-LENGTH #464

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

phideg
Copy link
Contributor

@phideg phideg commented Oct 4, 2023

This PR fixes issue #463.

The GitHub REST API endpoints, that use the http POST method, seem to require a CONTENT-LENGTH header even if the request body is empty.

This change addresses the issue by either sending an empty JSON document or by explicitly setting the CONTENT-LENGTH header as described in following issue: seanmonstar/reqwest#838

Fixes issue XAMPPRocky#463.

GitHub REST API endpoints, that use the http POST method, seem to require a `CONTENT-LENGTH` header even if the request body is empty.

This change addresses the issue either by sending an empty JSON document or by explicitly setting the `CONTENT-LENGTH` header as described in following issue:
seanmonstar/reqwest#83
@XAMPPRocky
Copy link
Owner

Thank you for your PR, and congrats on your first contribution! 🎉

@XAMPPRocky XAMPPRocky merged commit e3e9780 into XAMPPRocky:main Jan 15, 2024
10 checks passed
@github-actions github-actions bot mentioned this pull request Jan 15, 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.

3 participants