Add info about the item type in the file not found page

This commit is contained in:
Juhani Krekelä 2018-06-17 18:36:05 +03:00
parent a5cf76dfe2
commit a3cb6064c3
1 changed files with 1 additions and 1 deletions

View File

@ -694,7 +694,7 @@ class Serve(threading.Thread):
except FileNotFoundError:
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)
if not just_headers:
send_file(self.sock, reader, protocol, 'text/plain', config = self.config)