Skip to content

Commit

Permalink
Make beautiful
Browse files Browse the repository at this point in the history
  • Loading branch information
Tronic committed Mar 21, 2023
1 parent 884ae8a commit ef769d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sanic/http/http1.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,9 +453,9 @@ def create_empty_request(self) -> None:

# Reformat any URL already received with \xHH escapes for better logs
url_bytes = (
self.url.encode(errors="surrogateescape").decode(
"ASCII", errors="backslashreplace"
).encode("ASCII")
self.url.encode(errors="surrogateescape")
.decode("ASCII", errors="backslashreplace")
.encode("ASCII")
if self.url
else b"*"
)
Expand Down

0 comments on commit ef769d3

Please sign in to comment.