Add <head> to 404 so Livereload can add its script to the page
This commit is contained in:
parent
e7108a5656
commit
c6543b7c27
|
@ -238,7 +238,7 @@ module Middleman
|
||||||
# Halt request and return 404
|
# Halt request and return 404
|
||||||
def not_found(res, path)
|
def not_found(res, path)
|
||||||
res.status = 404
|
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
|
res.finish
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue