mirror of
https://codeberg.org/bunbun/bunbun.dev
synced 2025-06-07 20:09:55 -07:00
added 404 page
This commit is contained in:
@ -32,7 +32,8 @@
|
||||
(. _G.files uri) (. _G.files uri)
|
||||
(utils.file-exists? uri) (with-open [file (io.open uri :r)]
|
||||
(file:read :*a))
|
||||
"404 - Not Found"))
|
||||
(with-open [file (io.open :404.html :r)]
|
||||
(file:read :*a))))
|
||||
|
||||
(client:send "HTTP/1.1 200 OK\r\n\r\n")
|
||||
(client:send content)
|
||||
|
Reference in New Issue
Block a user