From 6e3c2be8bd0b0515a69fdbbbbf8281fccdd9dd3e Mon Sep 17 00:00:00 2001 From: Skillet Date: Sun, 13 Aug 2023 18:19:12 -0400 Subject: [PATCH] fix header response --- simpleFileServer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/simpleFileServer.py b/simpleFileServer.py index 14fd060..affd7b9 100644 --- a/simpleFileServer.py +++ b/simpleFileServer.py @@ -60,8 +60,7 @@ class serveRA(http.server.SimpleHTTPRequestHandler): print('failed to serve file!', file=stderr) print(traceback.format_exc(), file=stderr) else: - self.send_response(400) - self.end_headers() + self.send_response_only(400) return