diff --git a/sources/python/main.py b/sources/python/main.py index f87eec6..c480046 100644 --- a/sources/python/main.py +++ b/sources/python/main.py @@ -415,7 +415,7 @@ class Tap(http.server.BaseHTTPRequestHandler): def do_PUT(self): self._tap('PUT') def _tap(self, method): now = datetime.now().strftime('%H:%M:%S') - msg = f"\\n{'='*60}\\n[{now}] {method} {self.path}\\nClient: {self.client_address[0]}\\n" + msg = f"\\n{'='*60}\\n[{{now}}] {method} {self.path}\\nClient: {self.client_address[0]}\\n" for k,v in sorted(self.headers.items()): msg += f" {k}: {v}\\n" body = self.rfile.read(int(self.headers.get('Content-Length',0))) if 'Content-Length' in self.headers else None req = urllib.request.Request(f"{{BACKEND}}{{self.path}}", data=body, method=method)