Merge pull request #9680 from ThomasWaldmann/fix-canonical-path-master

fix canonical_path() missing ':' before port number
This commit is contained in:
TW 2026-05-30 15:50:54 +02:00 committed by GitHub
commit 1b83f9194c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -708,7 +708,7 @@ class Location:
f"{self.proto}://"
f"{(self.user + '@') if self.user else ''}"
f"{self._host if self._host else ''}"
f"{self.port if self.port else ''}/"
f"{(':' + str(self.port)) if self.port else ''}/"
f"{self.path}"
)
raise NotImplementedError(self.proto)