Skip to content

Commit

Permalink
Merge branch 'master' into reagent/master
Browse files Browse the repository at this point in the history
  • Loading branch information
damog committed Mar 1, 2010
2 parents ad7fdaf + 4eb14c5 commit 819c50c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion feedbag.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |s|
s.name = %q{feedbag}
s.version = "0.5.99"
s.version = "0.5.100"
s.homepage = "http://axiombox.com/feedbag"
s.rubyforge_project = "feedbag"

Expand Down
6 changes: 5 additions & 1 deletion lib/feedbag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ def self.find(url, args = {})

begin
html = open(url) do |f|
if @content_types.include?(f.content_type.downcase)
content_type = f.content_type.downcase
if content_type == "application/octet-stream" # open failed
content_type = f.meta["content-type"].gsub(/;.*$/, '')
end
if @content_types.include?(content_type)
return self.add_feed(url, nil)
end

Expand Down

0 comments on commit 819c50c

Please sign in to comment.