diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-23 19:58:44 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-23 19:58:44 +0000 |
commit | 02253a796181cf958f858ec3a767de333e0fcab5 () | |
tree | a662b00a371656ec396ab4ba2bbb717302fbb643 /lib | |
parent | 0f9b33c793f225c1b817d73e5c915050c429edc4 (diff) |
* lib/net/http/generic_request.rb (Net::HTTPGenericRequest):
set content-length to zero on empty post requests by Gregory Ostermayr <[email protected]> https://.com/ruby/ruby/pull/201 fix GH-201 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | lib/net/http/generic_request.rb | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -89,6 +89,9 @@ class Net::HTTPGenericRequest def set_body_internal(str) #:nodoc: raise ArgumentError, "both of body argument and HTTPRequest#body set" if str and (@body or @body_stream) self.body = str if str end # |