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