Skip to content

Commit

Permalink
fixed bug in setting If-Last-Modified header on Feed.update
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldix committed Feb 2, 2009
1 parent 9b8fe1b commit 3b693a1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/feedzirra/feed.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def self.update(feeds, options = {})
feeds.each do |feed|
easy = Curl::Easy.new(feed.feed_url) do |curl|
curl.headers["User-Agent"] = (options[:user_agent] || USER_AGENT)
curl.headers["If-Modified-Since"] = feed.last_modified if feed.last_modified
curl.headers["If-Modified-Since"] = feed.last_modified.httpdate if feed.last_modified
curl.headers["If-None-Match"] = feed.etag if feed.etag
curl.follow_location = true
curl.on_success do |c|
Expand Down
1 change: 0 additions & 1 deletion spec/sample_feeds/successful_feed_urls.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ http://fhwang.net/syndicate/ruby.atom
http://ola-bini.blogspot.com/atom.xml
http://irthoughts.wordpress.com/feed/
http://www.zedshaw.com/feed.atom
http://feeds.feedburner.com/devthatweb
http://ross.typepad.com/blog/atom.xml
http://www.pbs.org/cringely/pulpit/rss2.xml
http://rss.slashdot.org/slashdot/eqWf
Expand Down

0 comments on commit 3b693a1

Please sign in to comment.