mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-26 04:51:06 -05:00
httpserver, Fediverse: show an error message on 404
This commit is contained in:
parent
a209b73248
commit
c7d85e73d7
@ -61,7 +61,9 @@ class FediverseHttp(httpserver.SupyHTTPServerCallback):
|
|||||||
if path == "/instance_actor":
|
if path == "/instance_actor":
|
||||||
self.instance_actor(write_content)
|
self.instance_actor(write_content)
|
||||||
else:
|
else:
|
||||||
assert False, repr(path)
|
self.send_response(404)
|
||||||
|
self.end_headers()
|
||||||
|
self.wfile.write(b"Error 404. There is nothing to see here.")
|
||||||
|
|
||||||
def doWellKnown(self, handler, path):
|
def doWellKnown(self, handler, path):
|
||||||
actor_url = ap.get_instance_actor_url()
|
actor_url = ap.get_instance_actor_url()
|
||||||
|
@ -399,6 +399,7 @@ class SupyWellKnown(SupyHTTPServerCallback):
|
|||||||
|
|
||||||
handler.send_response(404)
|
handler.send_response(404)
|
||||||
self.end_headers()
|
self.end_headers()
|
||||||
|
self.wfile.write(b"Error 404. There is nothing to see here.")
|
||||||
|
|
||||||
|
|
||||||
DEFAULT_CALLBACKS = {'.well-known': SupyWellKnown()}
|
DEFAULT_CALLBACKS = {'.well-known': SupyWellKnown()}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user