lib/siteleaf/server.rb in siteleaf-0.9.11 vs lib/siteleaf/server.rb in siteleaf-0.9.12

- old
+ new

@@ -67,12 +67,11 @@ template_data = template_data.gsub(include_tags) { |i| File.read("_#{$1}.html") } end end output = site.preview(url, template_data) - if output.code == 200 && output.headers[:content_type] - puts output.class - [output.code, {'Content-Type' => output.headers[:content_type]}, [output.to_s]] + if output.code == 200 && output.headers["content-type"] + [output.code, {'Content-Type' => output.headers["content-type"]}, [output.to_s]] else [output.code, {'Content-Type' => 'text/html'}, [output.to_s]] end end end \ No newline at end of file