-
Notifications
You must be signed in to change notification settings - Fork 498
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
Add Connection:close header only when needed #657
Conversation
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.
👋🏻 Hi Mirco, thanks for opening the issue and pull request regarding this.
Could a meaningful unit test be added which can proof the issue exists (without the fix) and can safeguard the fix once it is in place ?
This is complicated. Btw even if I was able to create a unit test to proof the issue exists, it would work on the described environment only. Is it still useful? |
Co-authored-by: Juliette <[email protected]>
@jrfnl can you please introduce me to unit tests on this? How do you expect this to be implemented? |
@mircobabini I'm not sure what you are asking ?
|
@mircobabini Do you still want to continue with this PR or should one of us take over ? |
Thanks for the heads up. I'm unable to replicate this bc I don't have a Kaspersky license anymore. If you can/want to take over, please go ahead. Thanks. |
@jrfnl is this in your radar sooner or later? |
@mircobabini Well, yes, it is, but it is kind of hard to verify if something is the right fix and actually fixes something if there is no reproduction scenario.... |
@mircobabini We've discussed this today and will merge the PR, but the parse error (and CS errors) in the code will need to be fixed first. |
Co-authored-by: Juliette <[email protected]>
Nice! I'm sorry I wasn't able to provide tests and a reproduction scenario. But glad to now it will be merged. |
Thanks @mircobabini ! The patch will be included in the 2.1.0 release and if there will be a 2.0.x release, we may backport it as well. |
FYI: The patch was included in the Requests 2.0.8 release and reverted in Requests 2.0.9 due to it causing problems with Curl 7.29.0 (and possibly others). See #838 I'll re-open the original issue. |
@jrfnl thanks for sharing this update. Since this issue is:
I'd say it's to be considered as a rare-case backward compatibility patch. |
Pull Request Type
This is a:
Context
Fixes #656.
Quality assurance