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