Add <head> to 404 so Livereload can add its script to the page

This commit is contained in:
Thomas Reynolds 2014-06-16 08:57:56 -07:00
parent a35a38dd5f
commit fe5247d9d9

View file

@ -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