mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
Add <head> to 404 so Livereload can add its script to the page
This commit is contained in:
parent
a35a38dd5f
commit
fe5247d9d9
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ module Middleman
|
|||
# Halt request and return 404
|
||||
def not_found(res, path)
|
||||
res.status = 404
|
||||
res.write "<html><body><h1>File Not Found</h1><p>#{path}</p></body>"
|
||||
res.write "<html><head></head><body><h1>File Not Found</h1><p>#{path}</p></body></html>"
|
||||
res.finish
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue