diff options
author | 2014-10-12 16:23:15 +0800 | |
---|---|---|
committer | 2014-10-17 10:28:26 +0800 | |
commit | 1f91a2a6f539d300e4f7cf5a4ffa9b23d0c2fda8 (patch) | |
tree | 9f2224df781ce5a7412548e66b3cb7849a9dbabd /share | |
parent | 4aa38db56f6e138ea9bc15cb6f4ffc3502c3f435 (diff) |
web_config: map nonexistent post requests to 404
Diffstat (limited to 'share')
-rwxr-xr-x | share/tools/web_config/webconfig.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/tools/web_config/webconfig.py b/share/tools/web_config/webconfig.py index e63fe37e..cefeaab9 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) |