From e2e92f72b28a7e5131aad0792deda3deb73b34b0 Mon Sep 17 00:00:00 2001 From: Skillet Date: Sun, 13 Aug 2023 18:17:54 -0400 Subject: [PATCH] fix header response --- simpleFileServer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/simpleFileServer.py b/simpleFileServer.py index a046b27..14fd060 100644 --- a/simpleFileServer.py +++ b/simpleFileServer.py @@ -60,7 +60,8 @@ class serveRA(http.server.SimpleHTTPRequestHandler): print('failed to serve file!', file=stderr) print(traceback.format_exc(), file=stderr) else: - self.send_response_only(404, 'you must specify the group to pull from!') + self.send_response(400) + self.end_headers() return