From 2cd5955492a31b51b492c6874fcd972a5cafa86d Mon Sep 17 00:00:00 2001 From: Skillet Date: Sun, 13 Aug 2023 18:24:59 -0400 Subject: [PATCH] fix header response --- simpleFileServer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simpleFileServer.py b/simpleFileServer.py index affd7b9..b3bef44 100644 --- a/simpleFileServer.py +++ b/simpleFileServer.py @@ -60,7 +60,7 @@ class serveRA(http.server.SimpleHTTPRequestHandler): print('failed to serve file!', file=stderr) print(traceback.format_exc(), file=stderr) else: - self.send_response_only(400) + self.send_error(400, 'please specify the group to pull from', 'no grpName specified!') return