-
Notifications
You must be signed in to change notification settings - Fork 651
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
Ensure any custom CL
/TE
header is removed when 304
response code
#2820
Conversation
The failed test on Windows OS is not related |
It seems that there might be some remaining use cases where a custom content length could still remain if a 304 response is returned I am thinking about these two following use cases:
For example, let's first add this test in the
then add a
so, the /304-7 test will fail because it adds a custom invalid "Content-Length: 999" header (I know it's a corner case here, because no payload is sent while an invalid content-length is provided , but this CL is not removed, because I think
another use case, let's use sendObject, and let's add a new /304-8 test in the
So, here, the test fails because HttpOperations.sendObject does not invoke based on the two above use cases, it sounds like two modifications could be done in the patch: first, the patch done in
and finally, shouldn't the HttpOperations.sendObject be modified in order to invoke
doing so seems to address the two use cases. |
@pderop I tend to agree for use case 2, can you explain more use case 1? (IMO use case 1 is an application problem) |
The use case 1 is indeed about an application error that is adding a custom unexpected content-length header. |
@pderop I addressed the use case 2, PTAL |
The failed tests on Windows OS are not related |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking good ! thanks.
@pderop Thanks |
Fixes #2818