zendesk_api 0.3.9 → 0.3.10
Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock
CHANGED
@@ -34,7 +34,8 @@ module ZendeskAPI
|
|
34
34
|
env[:response_headers].merge!(
|
35
35
|
:etag => cached[:response_headers][:etag],
|
36
36
|
:content_type => cached[:response_headers][:content_type],
|
37
|
-
:content_length => cached[:response_headers][:content_length]
|
37
|
+
:content_length => cached[:response_headers][:content_length],
|
38
|
+
:content_encoding => cached[:response_headers][:content_encoding]
|
38
39
|
)
|
39
40
|
elsif env[:status] == 200 && env[:response_headers]["Etag"] # modified and cacheable
|
40
41
|
@cache.write(cache_key(env), env)
|
data/lib/zendesk_api/version.rb
CHANGED
@@ -14,7 +14,7 @@ describe ZendeskAPI::Middleware::Request::EtagCache do
|
|
14
14
|
response.status.should == 304
|
15
15
|
response.body.should == {"x"=>1}
|
16
16
|
|
17
|
-
%w{content_type content_length etag}.each do |header|
|
17
|
+
%w{content_encoding content_type content_length etag}.each do |header|
|
18
18
|
response.headers[header].should == first_response.headers[header]
|
19
19
|
end
|
20
20
|
end
|