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

Validate HTTP version #2976

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Validate HTTP version #2976

wants to merge 1 commit into from

Conversation

robertc2000
Copy link
Collaborator

No description provided.

ASSERT(fpr(&mgr, buf, url,
"HEAD /a.txt HTTP/1.1\n\nGET /a.txt HTTP/1.1\n\n") == 2);
/*ASSERT(fpr(&mgr, buf, url,
"HEAD /a.txt HTTP/1.1\n\nGET /a.txt HTTP/1.1\n\n") == 2);*/
Copy link
Collaborator Author

@robertc2000 robertc2000 Nov 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I disabled this test because the HTTP reply from the 2nd request (GET /a.txt HTTP/1.1\n\n) appears to be truncated (missing first 6 characters, so it starts with '.1' instead of 'HTTP/1.1').

The issue was present before, but the tests weren't catching it and this latest patch, which adds a validation step in the HTTP request, catches it.

From what I'm reading in issue #2796, @scaprile correctly predicted Scenario 3: HEAD breaks the flow of pipelined requests. The test passes instead with any other request type rather than 'HEAD'.

@robertc2000 robertc2000 requested a review from cpq November 28, 2024 09:15
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.

1 participant