Created
July 18, 2013 13:43
-
-
Save mjc/6029403 to your computer and use it in GitHub Desktop.
fix for HTTParty in rbx 2.0 mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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