Skip to content

Commit

Permalink
Added explicit html format option.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Nov 12, 2008
1 parent 99a07b5 commit e0cb431
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/google.rb
Expand Up @@ -4,6 +4,7 @@

class Google
include HTTParty
format :html
end

# google.com redirects to www.google.com so this is live test for redirection
Expand Down
2 changes: 1 addition & 1 deletion lib/httparty.rb
Expand Up @@ -14,7 +14,7 @@ module HTTParty
class UnsupportedFormat < StandardError; end
class RedirectionTooDeep < StandardError; end

AllowedFormats = {:xml => 'text/xml', :json => 'application/json'}
AllowedFormats = {:xml => 'text/xml', :json => 'application/json', :html => 'text/html'}

def self.included(base)
base.extend ClassMethods
Expand Down

0 comments on commit e0cb431

Please sign in to comment.