maxlapshin-feedzirra 0.0.16.3 → 0.0.16.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/feedzirra/feed.rb +2 -2
- metadata +1 -1
data/lib/feedzirra/feed.rb
CHANGED
@@ -145,8 +145,8 @@ module Feedzirra
|
|
145
145
|
# begin
|
146
146
|
feed = klass.parse(xml)
|
147
147
|
feed.feed_url = http.respond_to?(:last_effective_url) : http.last_effective_url : http.uri.to_s
|
148
|
-
feed.etag = http.response_header.etag
|
149
|
-
feed.last_modified = http.response_header.last_modified
|
148
|
+
feed.etag = http.response_header.etag if http.response_header.respond_to?(:etag)
|
149
|
+
feed.last_modified = http.response_header.last_modified if http.response_header.respond_to?(:last_modified)
|
150
150
|
options[:on_success].call(url, feed) if options.has_key?(:on_success)
|
151
151
|
# rescue Exception => e
|
152
152
|
# options[:on_failure].call(url, http) if options.has_key?(:on_failure)
|