From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from g4t3426.houston.hpe.com (g4t3426.houston.hpe.com [15.241.140.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id B4F0D21959CD4 for ; Wed, 7 Jun 2017 23:39:05 -0700 (PDT) Received: from hegdenag.asiapacific.hpqcorp.net (unknown [15.213.58.96]) by g4t3426.houston.hpe.com (Postfix) with ESMTP id 3E32C77; Thu, 8 Jun 2017 06:40:10 +0000 (UTC) From: hegdenag To: edk2-devel@lists.01.org Cc: jiaxin.wu@intel.com, sriram-s@hpe.com, siyuan.fu@intel.com, ting.ye@intel.com Date: Thu, 8 Jun 2017 12:10:09 +0530 Message-Id: <20170608064009.16320-1-nagaraj-p.hegde@hpe.com> X-Mailer: git-send-email 2.13.0.windows.1 Subject: [PATCH v1 1/1] MdeModulePkg/DxeHttpLib: Handle new #define in HttpMappingToStatusCode X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2017 06:39:05 -0000 Related to the ECR for support of HTTP Redirect (308) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hegde Nagaraj P --- 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..b781fc416f 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: -- 2.13.0.windows.1