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 e7108a5656
commit c6543b7c27

View file

@ -238,7 +238,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