jira-importer opened a new issue, #821: URL: https://github.com/apache/httpcomponents-core/issues/821
**[Roland Hänel](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=roland237)** opened **[HTTPCORE-296](https://issues.apache.org/jira/browse/HTTPCORE-296?redirect=false)** and commented If a client submits a POST with Content-Length 0, the HttpCore framework will fire the onContentReceived(...) method of the HttpAsyncRequestConsumer once. However, the decoder (passed as an argument to onContentReceived()) will never enter the "completed" state, because no bytes will actually be received from the client. However, reaching the "completed" stage of the decoder is an requirement for the HttpAsyncServiceHandler to finally process the request (i.e., call the handle(...) method). This leads to the (incorrect) behavior that it is impossible to handle a POST request with Content-Length 0 in HttpCore NIO. --- **Affects:** 4.2-alpha2 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
