From: hegdenag Date: Thu, 8 Jun 2017 06:40:09 +0000 (+0800) Subject: MdeModulePkg/DxeHttpLib: Handle new #define in HttpMappingToStatusCode X-Git-Tag: edk2-stable201903~3946 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=7dec14b78f0b579a17050665832ed95b3ac4b53e;p=mirror_edk2.git MdeModulePkg/DxeHttpLib: Handle new #define in HttpMappingToStatusCode Related to the ECR for support of HTTP Redirect (308) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hegde Nagaraj P Reviewed-by: Wu Jiaxin Reviewed-by: Sriram Subramanian Reviewed-by: Fu Siyuan --- diff --git a/MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c b/MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c index 292923875f..505d5c89e9 100644 --- a/MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c +++ b/MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c @@ -1943,6 +1943,8 @@ HttpMappingToStatusCode ( return HTTP_STATUS_305_USE_PROXY; case 307: return HTTP_STATUS_307_TEMPORARY_REDIRECT; + case 308: + return HTTP_STATUS_308_PERMANENT_REDIRECT; case 400: return HTTP_STATUS_400_BAD_REQUEST; case 401: