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.
Files changed (2) hide show
  1. data/lib/feedzirra/feed.rb +2 -2
  2. metadata +1 -1
@@ -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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maxlapshin-feedzirra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16.3
4
+ version: 0.0.16.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Dix