]> git.proxmox.com Git - mirror_edk2.git/commit
NetworkPkg/HttpBootDxe: Break the HttpBoot Callback function when meet redirect status.
authorJiaxin Wu <jiaxin.wu@intel.com>
Thu, 21 Dec 2017 06:34:58 +0000 (14:34 +0800)
committerJiaxin Wu <jiaxin.wu@intel.com>
Fri, 22 Dec 2017 07:51:14 +0000 (15:51 +0800)
commit5e125e7752404968ab22e6039ff2d71cea4b01a8
tree71702a878e3cff39ff34366137dd28b30fbfe213
parent0dc5929645210604fc5a01bf8c160501cc4d9502
NetworkPkg/HttpBootDxe: Break the HttpBoot Callback function when meet redirect status.

In HttpBootCallback(), when data type is HttpBootHttpResponse, function may meet
the resource redirect error. In current implementation, function will still go
ahead to find header for HTTP_HEADER_CONTENT_LENGTH, this is not expected. Function
should break in redirect status error handling.

Cc: Wang Fan <fan.wang@intel.com>
Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Wang Fan <fan.wang@intel.com>
NetworkPkg/HttpBootDxe/HttpBootImpl.c