diff options
author | Jiaxin Wu <jiaxin.wu@intel.com> | 2017-12-21 14:34:58 +0800 |
---|---|---|
committer | Jiaxin Wu <jiaxin.wu@intel.com> | 2017-12-22 15:51:14 +0800 |
commit | 5e125e7752404968ab22e6039ff2d71cea4b01a8 (patch) | |
tree | 71702a878e3cff39ff34366137dd28b30fbfe213 /NetworkPkg/HttpBootDxe | |
parent | 0dc5929645210604fc5a01bf8c160501cc4d9502 (diff) | |
download | edk2-5e125e7752404968ab22e6039ff2d71cea4b01a8.tar.gz |
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>
Diffstat (limited to 'NetworkPkg/HttpBootDxe')
-rw-r--r-- | NetworkPkg/HttpBootDxe/HttpBootImpl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/NetworkPkg/HttpBootDxe/HttpBootImpl.c b/NetworkPkg/HttpBootDxe/HttpBootImpl.c index d4b46a6e4a..16c1207bf8 100644 --- a/NetworkPkg/HttpBootDxe/HttpBootImpl.c +++ b/NetworkPkg/HttpBootDxe/HttpBootImpl.c @@ -711,6 +711,7 @@ HttpBootCallback ( if (HttpHeader != NULL) {
Print (L"\n HTTP ERROR: Resource Redirected.\n New Location: %a\n", HttpHeader->FieldValue);
}
+ break;
}
}
|