mirror of
https://github.com/utmapp/edk2.git
synced 2026-12-01 14:00:40 -10:00
When an HTTP server sends a non-chunked body data with no Content-Length header, the HttpParserMessageBody in DxeHttpLib gets confused and never sets the Char pointer beyond the body start. This causes "for" loop to never break because the condition of "Char >= Body + BodyLength" is never satisfied. Use BodyLength as the ContentLength for the parser when ContentLength is absent in HTTP response headers. BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2941 Signed-off-by: Vladimir Olovyannikov <[email protected]> Cc: Maciej Rabeda <[email protected]> Cc: Jiaxin Wu <[email protected]> Cc: Siyuan Fu <[email protected]> Reviewed-by: Maciej Rabeda <[email protected]>