web_config: map nonexistent post requests to 404

This commit is contained in:
David Adam 2014-10-12 16:23:15 +08:00
parent 4aa38db56f
commit 1f91a2a6f5

View file

@ -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)