jsl-feedtosis 0.0.2.3 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|