lib/linner/reactor.rb in linner-0.3.2 vs lib/linner/reactor.rb in linner-0.4.0

- old
+ new

@@ -25,10 +25,10 @@ end end def route_request(connection, request) if request.url.start_with? "/livereload.js" - return connection.respond :ok, File.read(File.join(File.dirname(__FILE__), "../../vendor", "livereload.js")) + return connection.respond :ok, {"Content_Type" => 'application/ecmascript'}, File.read(File.join(File.dirname(__FILE__), "../../vendor", "livereload.js")) end path = File.join(Linner.environment.public_folder, request.url[1..-1]) if File.exist?(path) content_type = case File.extname(path)