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:
parent
a4e3aa169e
commit
b2926d10c2
2
1991.fs
2
1991.fs
@ -38,7 +38,7 @@ wordlist constant routes
|
|||||||
find-route dup if
|
find-route dup if
|
||||||
execute
|
execute
|
||||||
else
|
else
|
||||||
0 or-404 exit
|
0 exit \ continue to 404
|
||||||
then
|
then
|
||||||
s\" HTTP/1.1 200 OK\n Content-Type: text/html\n\n" 2swap s+
|
s\" HTTP/1.1 200 OK\n Content-Type: text/html\n\n" 2swap s+
|
||||||
rdrop exit then ;
|
rdrop exit then ;
|
||||||
|
Loading…
Reference in New Issue
Block a user