Add info about the item type in the file not found page
This commit is contained in:
parent
a5cf76dfe2
commit
a3cb6064c3
1 changed files with 1 additions and 1 deletions
2
neomi.py
2
neomi.py
|
@ -694,7 +694,7 @@ class Serve(threading.Thread):
|
||||||
|
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
log('%s [%s]: Requested path not found: %s' % (self.address, protocol.name, path_raw))
|
log('%s [%s]: Requested path not found: %s' % (self.address, protocol.name, path_raw))
|
||||||
reader = StringReader('%s not found\n' % path_raw)
|
reader = StringReader('%s not found\n\nMake sure you included the item type in the URL\n' % path_raw)
|
||||||
send_header(self.sock, protocol, Status.notfound, 'text/plain', config = self.config)
|
send_header(self.sock, protocol, Status.notfound, 'text/plain', config = self.config)
|
||||||
if not just_headers:
|
if not just_headers:
|
||||||
send_file(self.sock, reader, protocol, 'text/plain', config = self.config)
|
send_file(self.sock, reader, protocol, 'text/plain', config = self.config)
|
||||||
|
|
Loading…
Reference in a new issue