1
0
mirror of https://github.com/urlysses/1991.git synced 2024-11-26 03:28:06 +11:00

Handle 404s more appropriately if a requested route fails

This commit is contained in:
urlysses 2017-02-14 21:50:02 -05:00
parent a4e3aa169e
commit b2926d10c2

View File

@ -38,7 +38,7 @@ wordlist constant routes
find-route dup if
execute
else
0 or-404 exit
0 exit \ continue to 404
then
s\" HTTP/1.1 200 OK\n Content-Type: text/html\n\n" 2swap s+
rdrop exit then ;