From 7dec14b78f0b579a17050665832ed95b3ac4b53e Mon Sep 17 00:00:00 2001 From: hegdenag Date: Thu, 8 Jun 2017 14:40:09 +0800 Subject: [PATCH] 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 --- MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c | 2 ++ 1 file changed, 2 insertions(+) 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: