Skip to content

Instantly share code, notes, and snippets.

@mjc
Created July 18, 2013 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjc/6029403 to your computer and use it in GitHub Desktop.
Save mjc/6029403 to your computer and use it in GitHub Desktop.
fix for HTTParty in rbx 2.0 mode
diff --git a/lib/20/net/http.rb b/lib/20/net/http.rb
index fd8c802..2266617 100644
--- a/lib/20/net/http.rb
+++ b/lib/20/net/http.rb
@@ -321,7 +321,7 @@ module Net #:nodoc:
# HTTPResetContent:: 205
# HTTPPartialContent:: 206
# HTTPRedirection:: 3xx
- # HTTPMultipleChoice:: 300
+ # HTTPMultipleChoices:: 300
# HTTPMovedPermanently:: 301
# HTTPFound:: 302
# HTTPSeeOther:: 303
@@ -2283,7 +2283,7 @@ module Net #:nodoc:
# 206 HTTPPartialContent
#
# 3xx HTTPRedirection
- # 300 HTTPMultipleChoice
+ # 300 HTTPMultipleChoices
# 301 HTTPMovedPermanently
# 302 HTTPFound
# 303 HTTPSeeOther
@@ -2388,7 +2388,7 @@ module Net #:nodoc:
HAS_BODY = true
end
- class HTTPMultipleChoice < HTTPRedirection # 300
+ class HTTPMultipleChoices < HTTPRedirection # 300
HAS_BODY = true
end
class HTTPMovedPermanently < HTTPRedirection # 301
@@ -2511,7 +2511,7 @@ module Net #:nodoc:
'205' => HTTPResetContent,
'206' => HTTPPartialContent,
- '300' => HTTPMultipleChoice,
+ '300' => HTTPMultipleChoices,
'301' => HTTPMovedPermanently,
'302' => HTTPFound,
'303' => HTTPSeeOther,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment