Fix inconsistency between Python and C http request parsers.#4973
Fix inconsistency between Python and C http request parsers.#4973asvetlov merged 13 commits intoaio-libs:masterfrom
Conversation
They both now correctly parse URLs containing pct-encoded sequences and work with yarl 1.6.0. Yarl >= 1.6 is now required.
|
@serhiy-storchaka looks like the CI failures are caused by this change. |
Codecov Report
@@ Coverage Diff @@
## master #4973 +/- ##
=======================================
Coverage 97.61% 97.61%
=======================================
Files 43 43
Lines 8933 8936 +3
Branches 1406 1405 -1
=======================================
+ Hits 8720 8723 +3
Misses 95 95
Partials 118 118
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Co-authored-by: Sviatoslav Sydorenko <[email protected]>
|
Now there is a question: do we want to support yarl < 1.6 or require yarl >= 1.6? |
I'm okay with doing |
|
re: CI failures -- |
|
Any update on this? |
|
What about this fix required yarl 1.6? My understanding of the yarl change is that if we just ensure we specify The core issue as I understood it was that we were passing encoded elements to |
Codecov Report
@@ Coverage Diff @@
## master #4973 +/- ##
==========================================
+ Coverage 97.10% 97.62% +0.51%
==========================================
Files 43 43
Lines 8996 9007 +11
Branches 1413 1414 +1
==========================================
+ Hits 8736 8793 +57
+ Misses 144 100 -44
+ Partials 116 114 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
It now works also with yarl <1.6. |
|
Thanks, @serhiy-storchaka |
They both now correctly parse URLs containing pct-encoded sequences and work with yarl 1.6.0. Co-authored-by: Sviatoslav Sydorenko <[email protected]> Co-authored-by: Andrew Svetlov <[email protected]>
💚 Backport successfulThe PR was backported to the following branches:
|
…4973) (#5097) Backports the following commits to 3.7: - Fix inconsistency between Python and C http request parsers. (#4973) Co-authored-by: Serhiy Storchaka <[email protected]>
They both now correctly parse URLs containing pct-encoded sequences and work with yarl 1.6.0.
Yarl >= 1.6 is now required.Closes #4972