Skip to content

Commit

Permalink
more fixes to http redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
rsinger committed Oct 30, 2009
1 parent 9a54444 commit e5c812e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RDFObjects.gemspec
Expand Up @@ -5,7 +5,7 @@

Gem::Specification.new do |s|
s.name = %q{rdfobjects}
s.version = "0.6.3"
s.version = "0.6.4"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Ross Singer"]
Expand Down
2 changes: 1 addition & 1 deletion lib/rdf_objects/http_client.rb
Expand Up @@ -19,7 +19,7 @@ def self.fetch(uri)
end
if response.code == "200"
return response.body
elsif response.code == "303"
elsif response.code =~ /^30[0-9]$/
return fetch(response.header['location'])
else
raise response.message
Expand Down

0 comments on commit e5c812e

Please sign in to comment.