Skip to content

BaseRequest.url passes the host and port to URL.build when the port is included in the host header (non-default port) -- fixed in 3.10.7 #9307

@bdraco

Description

@bdraco

request.host can be 127.0.0.1:8123

url = URL.build(scheme=self.scheme, host=self.host)

yarl 1.13.0+ caught this because host is now validated via aio-libs/yarl#954

Pinning yarl to < 1.13.0 will also prevent the issue since the validation doesn't happen until that version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions