jsl-feedtosis 0.0.2.3 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/feedtosis.gemspec +1 -1
- data/lib/feedtosis/client.rb +2 -6
- metadata +1 -1
data/feedtosis.gemspec
CHANGED
data/lib/feedtosis/client.rb
CHANGED
@@ -90,12 +90,8 @@ module Feedtosis
|
|
90
90
|
summary = summary_for_feed
|
91
91
|
|
92
92
|
unless summary.nil?
|
93
|
-
|
94
|
-
|
95
|
-
if summary[:etag] && summary[:last_modified]
|
96
|
-
curl.headers['If-None-Match'] = summary[:etag]
|
97
|
-
curl.headers['If-Modified-Since'] = summary[:last_modified]
|
98
|
-
end
|
93
|
+
curl.headers['If-None-Match'] = summary[:etag] unless summary[:etag].nil?
|
94
|
+
curl.headers['If-Modified-Since'] = summary[:last_modified] unless summary[:last_modified].nil?
|
99
95
|
end
|
100
96
|
|
101
97
|
curl
|