NetworkPkg/HttpDxe: Handle the HttpVersionUnsupported in the HttpConfigData
v2: * Refine the patch by changing the '==' to '>='. Cc: Ye Ting <ting.ye@intel.com> Cc: Jin Eric <eric.jin@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com> Reviewed-by: Ye Ting <ting.ye@intel.com>
This commit is contained in:
@@ -151,6 +151,10 @@ EfiHttpConfigure (
|
||||
|
||||
if (HttpConfigData != NULL) {
|
||||
|
||||
if (HttpConfigData->HttpVersion >= HttpVersionUnsupported) {
|
||||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
|
||||
//
|
||||
// Now configure this HTTP instance.
|
||||
//
|
||||
|
Reference in New Issue
Block a user