mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
web_config: map nonexistent post requests to 404
This commit is contained in:
parent
4aa38db56f
commit
1f91a2a6f5
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue