cacheability 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/cacheability.gemspec +1 -1
- data/lib/cacheability/restclient.rb +1 -1
- metadata +1 -1
data/VERSION.yml
CHANGED
data/cacheability.gemspec
CHANGED
@@ -58,7 +58,7 @@ module RestClient
|
|
58
58
|
env.merge!("HTTP_"+key.to_s.gsub("-", "_").upcase => value)
|
59
59
|
end
|
60
60
|
response = MockHTTPResponse.new(cache.call(env))
|
61
|
-
env['rack.errors'].close if env['rack.errors'].
|
61
|
+
env['rack.errors'].close if env['rack.errors'].kind_of?(File)
|
62
62
|
RestClient::Response.new(response.body, response)
|
63
63
|
else
|
64
64
|
super(additional_headers)
|