Permalink
Browse files

Added explicit html format option.

  • Loading branch information...
1 parent 99a07b5 commit e0cb4311d9a80bb3a44ac47e7355d2e24dc7307f @jnunemaker committed Nov 12, 2008
Showing with 2 additions and 1 deletion.
  1. +1 −0 examples/google.rb
  2. +1 −1 lib/httparty.rb
View
@@ -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
View
@@ -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

0 comments on commit e0cb431

Please sign in to comment.