Skip to content

Fix HTTP request corruption by the user agent #32

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

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

macintoshplus
Copy link
Contributor

The file VERSION used to send the version contains a new line.

When it's used to generate the UserAgent for curl, the new line char stops the headers sent for the request. All other headers sent after the user agent are ignored and used like the body requests.

To solve this issue, clean up the VERSION file content on load.

@cmb69
Copy link
Member

cmb69 commented Nov 13, 2024

Good catch. Thank you!

Next time please do unrelated whitespace changes in a separate PR.

@cmb69 cmb69 merged commit b3d87e1 into php:master Nov 13, 2024
@macintoshplus
Copy link
Contributor Author

Next time please do unrelated whitespace changes in a separate PR.

Sorry, it's the automatic change from PHPStorm.

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.

2 participants