Skip to content

Commit

Permalink
bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
mnot committed Oct 7, 2023
1 parent 7bab7ba commit 45e87c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redbot/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def request_done(self, trailers: RawHeaderListType) -> None:

def serve_static(self, path: bytes) -> None:
path = os.path.normpath(path)
if path.startswith(f"{self.server.static_root}/"):
if path.startswith(self.server.static_root + b"/"):
path = b"/".join(path.split(b"/")[2:])
try:
with self.server.static_files.joinpath(path.decode("ascii")).open(
Expand Down

0 comments on commit 45e87c1

Please sign in to comment.