From fe5247d9d9482858f6753531ad1e135afe6366b5 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Mon, 16 Jun 2014 08:57:56 -0700 Subject: [PATCH] Add to 404 so Livereload can add its script to the page --- middleman-core/lib/middleman-core/core_extensions/request.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleman-core/lib/middleman-core/core_extensions/request.rb b/middleman-core/lib/middleman-core/core_extensions/request.rb index e78f0ffe..aabb708e 100644 --- a/middleman-core/lib/middleman-core/core_extensions/request.rb +++ b/middleman-core/lib/middleman-core/core_extensions/request.rb @@ -281,7 +281,7 @@ module Middleman # Halt request and return 404 def not_found(res, path) res.status = 404 - res.write "

File Not Found

#{path}

" + res.write "

File Not Found

#{path}

" res.finish end