Michael Osipov created HTTPCORE-626:
---------------------------------------

             Summary: Don't send request body for "Expect: 100-continue" when 
servers closes connection on non-2xx status code
                 Key: HTTPCORE-626
                 URL: https://issues.apache.org/jira/browse/HTTPCORE-626
             Project: HttpComponents HttpCore
          Issue Type: Improvement
          Components: HttpCore
    Affects Versions: 5.0-beta11
            Reporter: Michael Osipov


Based on the discussion in 
[this|https://www.mail-archive.com/[email protected]/msg09851.html]
 thread. The expect handling was been changed in a way that it turned out to be 
pointless. Roy Fielding commented that a server can close a connection on a 
non-2xx status and the client does not need to send the request body in this 
case.

In the spirit of this, we shall close the connection immediately w/o sending 
the request body. It shall only be send if the server does not request to close 
the connection.
The client can close the connection itself if a non-2xx status has been 
received and it wishes not to send the request body. Otherwise one must 
completely the request for the server connection to continue function properly.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to