mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* lib/net/http/responses.rb:
Add `HTTPIMUsed`, as it is also supported by rack/rails. RFC - http://tools.ietf.org/html/rfc3229 by Vipul A M <vipulnsward@gmail.com> https://github.com/ruby/ruby/pull/447 fix GH-447 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									e0097ea89f
								
							
						
					
					
						commit
						91539d71d8
					
				
					 3 changed files with 13 additions and 1 deletions
				
			
		|  | @ -1,3 +1,11 @@ | |||
| Mon Dec  9 02:10:32 2013  NARUSE, Yui  <naruse@ruby-lang.org> | ||||
| 
 | ||||
| 	* lib/net/http/responses.rb: | ||||
| 	  Add `HTTPIMUsed`, as it is also supported by rack/rails. | ||||
| 	  RFC - http://tools.ietf.org/html/rfc3229 | ||||
| 	  by Vipul A M <vipulnsward@gmail.com> | ||||
| 	  https://github.com/ruby/ruby/pull/447 fix GH-447 | ||||
| 
 | ||||
| Sun Dec  8 20:47:35 2013  Nobuyoshi Nakada  <nobu@ruby-lang.org> | ||||
| 
 | ||||
| 	* class.c (rb_get_kwargs): when values is non-null, remove | ||||
|  |  | |||
|  | @ -334,6 +334,7 @@ module Net   #:nodoc: | |||
|   #   HTTPResetContent::                    205 | ||||
|   #   HTTPPartialContent::                  206 | ||||
|   #   HTTPMultiStatus::                     207 | ||||
|   #   HTTPIMUsed::                          226 | ||||
|   # HTTPRedirection::                    3xx | ||||
|   #   HTTPMultipleChoices::                 300 | ||||
|   #   HTTPMovedPermanently::                301 | ||||
|  |  | |||
|  | @ -57,7 +57,9 @@ class Net::HTTPMultiStatus < Net::HTTPSuccess                   # 207 - RFC 4918 | |||
|   HAS_BODY = true | ||||
| end | ||||
| # 208 Already Reported - RFC 5842; experimental | ||||
| # 226 IM Used - RFC 3229; no famous implementation known | ||||
| class Net::HTTPIMUsed < Net::HTTPSuccess                        # 226 - RFC 3229 | ||||
|   HAS_BODY = true | ||||
| end | ||||
| 
 | ||||
| class Net::HTTPMultipleChoices < Net::HTTPRedirection    # 300 | ||||
|   HAS_BODY = true | ||||
|  | @ -218,6 +220,7 @@ class Net::HTTPResponse | |||
|     '205' => Net::HTTPResetContent, | ||||
|     '206' => Net::HTTPPartialContent, | ||||
|     '207' => Net::HTTPMultiStatus, | ||||
|     '226' => Net::HTTPIMUsed, | ||||
| 
 | ||||
|     '300' => Net::HTTPMultipleChoices, | ||||
|     '301' => Net::HTTPMovedPermanently, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 naruse
						naruse