From 1f91a2a6f539d300e4f7cf5a4ffa9b23d0c2fda8 Mon Sep 17 00:00:00 2001 From: David Adam Date: Sun, 12 Oct 2014 16:23:15 +0800 Subject: [PATCH] web_config: map nonexistent post requests to 404 --- share/tools/web_config/webconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/tools/web_config/webconfig.py b/share/tools/web_config/webconfig.py index e63fe37e7..cefeaab95 100755 --- a/share/tools/web_config/webconfig.py +++ b/share/tools/web_config/webconfig.py @@ -811,7 +811,7 @@ class FishConfigHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): else: output = ["Unable to set prompt"] else: - return SimpleHTTPServer.SimpleHTTPRequestHandler.do_POST(self) + return self.send_error(404) # Return valid output self.send_response(200)