diff --git a/redbot/daemon.py b/redbot/daemon.py index 580228bc..1d2f2c04 100755 --- a/redbot/daemon.py +++ b/redbot/daemon.py @@ -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(