Skip to content

Commit

Permalink
net_fix.rb improvements
Browse files Browse the repository at this point in the history
git-svn-id: https://wush.net/svn/rightscale/right_http_connection/trunk@2687 9f0cbaf6-ce18-0410-ad37-d14a22affa91
  • Loading branch information
Konstantin Dzreyev committed Jan 30, 2008
1 parent d9bc513 commit f25557c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/net_fix.rb
Expand Up @@ -145,10 +145,7 @@ def request(req, body = nil, &block) # :yield: +response+
begin
res = HTTPResponse.read_new(@socket)
# if we expected 100-continue then send a body
if res.is_a?(HTTPContinue) &&
(req.is_a?(Post)||req.is_a?(Put)) &&
req['expect']=='100-continue' &&
req['content-length'].to_i > 0
if res.is_a?(HTTPContinue) && send_only && req['content-length'].to_i > 0
req.exec @socket, @curr_http_version, edit_path(req.path), :body
end
end while res.kind_of?(HTTPContinue)
Expand Down

0 comments on commit f25557c

Please sign in to comment.