Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.0-M1
-
None
-
MINA from public repository revision 613995
Description
MINA HTTP codec assumes that HTTP/1.1 100 Continue responses can have a body, and decodes the final response that follows the interim Continue response as the body of the Continue response.
This can be fixed by recognizing that 100 Continue responses MUST NOTt have a body (end of section 4.3 of RFC 2616), skipping over their headers and processing teh following final response as if no 100 Continue response had ever existed. I will attach a patch with proof-of-concept implementation that decodes the responses I originally encountered the problem with (I cannot provide the responses as-is, but if needed, I can provide something).