lib/relevance/tarantula/rails_integration_proxy.rb in tarantula-0.2.0 vs lib/relevance/tarantula/rails_integration_proxy.rb in tarantula-0.3.3

- old
+ new

@@ -39,10 +39,10 @@ def patch_response(url, response) if response.code == '404' if File.exist?(static_content_path(url)) case ext = File.extension(url) - when /html|te?xt|css|js|jpe?g|gif|psd|png|eps|pdf/ + when /html|te?xt|css|js|jpe?g|gif|psd|png|eps|pdf|ico/ response.body = static_content_file(url) response.headers["type"] = "text/#{ext}" # readable as response.content_type response.meta.attr_accessor :code response.code = "200" else