Skip to content

[PR #9309/e4028333 backport][3.11] Fix building the URL in BaseRequest when the host contains a port or IPv6 address#9319

Merged
bdraco merged 1 commit into3.11from
patchback/backports/3.11/e40283338eab5b501e8e91e5b24c2c38cb1a0c71/pr-9309
Sep 27, 2024
Merged

[PR #9309/e4028333 backport][3.11] Fix building the URL in BaseRequest when the host contains a port or IPv6 address#9319
bdraco merged 1 commit into3.11from
patchback/backports/3.11/e40283338eab5b501e8e91e5b24c2c38cb1a0c71/pr-9309

Conversation

@patchback
Copy link
Contributor

@patchback patchback bot commented Sep 27, 2024

This is a backport of PR #9309 as merged into master (e402833).

What do these changes do?

The port was incorrectly being passed in the host field to URL.build when the Host header included the port

Are there changes in behavior for the user?

Calling BaseRequest.url will not fail with yarl 1.13.0+ when the host header has a port

Is it a substantial burden for the maintainers to support this?

no

Related issue number

fixes #9307

@bdraco bdraco enabled auto-merge (squash) September 27, 2024 18:24
@codecov
Copy link

codecov bot commented Sep 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.79%. Comparing base (0604da9) to head (c8716eb).
Report is 377 commits behind head on 3.11.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             3.11    #9319   +/-   ##
=======================================
  Coverage   97.79%   97.79%           
=======================================
  Files         108      108           
  Lines       34975    34980    +5     
  Branches     4177     4177           
=======================================
+ Hits        34204    34209    +5     
  Misses        574      574           
  Partials      197      197           
Flag Coverage Δ
CI-GHA 97.68% <100.00%> (+<0.01%) ⬆️
OS-Linux 97.36% <100.00%> (+<0.01%) ⬆️
OS-Windows 94.94% <100.00%> (+<0.01%) ⬆️
OS-macOS 97.06% <100.00%> (+<0.01%) ⬆️
Py-3.10.11 97.02% <100.00%> (+<0.01%) ⬆️
Py-3.10.15 96.96% <100.00%> (+<0.01%) ⬆️
Py-3.11.10 96.94% <100.00%> (+<0.01%) ⬆️
Py-3.11.9 97.00% <100.00%> (+<0.01%) ⬆️
Py-3.12.6 97.40% <100.00%> (+<0.01%) ⬆️
Py-3.13.0-rc.2 97.39% <100.00%> (+<0.01%) ⬆️
Py-3.9.13 96.93% <100.00%> (-0.01%) ⬇️
Py-3.9.20 96.87% <100.00%> (+<0.01%) ⬆️
Py-pypy7.3.16 96.48% <100.00%> (+<0.01%) ⬆️
VM-macos 97.06% <100.00%> (+<0.01%) ⬆️
VM-ubuntu 97.36% <100.00%> (+<0.01%) ⬆️
VM-windows 94.94% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bdraco bdraco merged commit 8999d9b into 3.11 Sep 27, 2024
@bdraco bdraco deleted the patchback/backports/3.11/e40283338eab5b501e8e91e5b24c2c38cb1a0c71/pr-9309 branch September 27, 2024 19:06
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