mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-28 09:31:16 -03:00
web_config: map nonexistent post requests to 404
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user