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.