lib/relevance/tarantula/rails_integration_proxy.rb in tarantula-0.0.8.1 vs lib/relevance/tarantula/rails_integration_proxy.rb in tarantula-0.1.4

- old
+ new

@@ -39,12 +39,10 @@ def patch_response(url, response) if response.code == '404' if File.exist?(static_content_path(url)) case ext = File.extension(url) - when /jpe?g|gif|psd|png|eps|pdf/ - log "Skipping #{url} (for now)" - when /html|te?xt|css|js/ + when /html|te?xt|css|js|jpe?g|gif|psd|png|eps|pdf/ 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