From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.120; helo=mga04.intel.com; envelope-from=siyuan.fu@intel.com; receiver=edk2-devel@lists.01.org Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (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 ED997209574D1 for ; Mon, 26 Feb 2018 19:50:28 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Feb 2018 19:56:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,398,1515484800"; d="scan'208";a="29997760" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by FMSMGA003.fm.intel.com with ESMTP; 26 Feb 2018 19:56:34 -0800 Received: from fmsmsx102.amr.corp.intel.com (10.18.124.200) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 26 Feb 2018 19:56:34 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX102.amr.corp.intel.com (10.18.124.200) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 26 Feb 2018 19:56:33 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.116]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.253]) with mapi id 14.03.0319.002; Tue, 27 Feb 2018 11:56:32 +0800 From: "Fu, Siyuan" To: "Wu, Jiaxin" , "edk2-devel@lists.01.org" CC: Karunakar P , "Ye, Ting" Thread-Topic: [Patch] NetworkPkg/HttpDxe: Support HTTP Delete Method. Thread-Index: AQHTr35z1mK2UQPnFEyvcs0X4PFWqKO3nuKQ Date: Tue, 27 Feb 2018 03:56:31 +0000 Message-ID: References: <20180227035249.5472-1-jiaxin.wu@intel.com> In-Reply-To: <20180227035249.5472-1-jiaxin.wu@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOGE2ODRlZDgtNWZlNS00ZmNhLWFkMmMtMWQ3YjZiNzc1YzRkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJiTVdpdmhDQnYxeFJHc1JDV1M1bXAxVERyQUlEU0NCUHVMWGo3K09EQTVLWDFiUVQ0eW5jOWlCd2oyNWhHRDN6In0= dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch] NetworkPkg/HttpDxe: Support HTTP Delete Method. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Feb 2018 03:50:29 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Fu Siyuan > -----Original Message----- > From: Wu, Jiaxin > Sent: Tuesday, February 27, 2018 11:53 AM > To: edk2-devel@lists.01.org > Cc: Karunakar P ; Ye, Ting = ; > Fu, Siyuan ; Wu, Jiaxin > Subject: [Patch] NetworkPkg/HttpDxe: Support HTTP Delete Method. >=20 > Per the request to support HttpMethodDelete: > https://bugzilla.tianocore.org/show_bug.cgi?id=3D879, > This patch is to enable the HTTP Delete Method. >=20 > Cc: Karunakar P > Cc: Ye Ting > Cc: Fu Siyuan > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Wu Jiaxin > --- > NetworkPkg/HttpDxe/HttpImpl.c | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) >=20 > diff --git a/NetworkPkg/HttpDxe/HttpImpl.c b/NetworkPkg/HttpDxe/HttpImpl.= c > index b3a64cf516..a2af59674a 100644 > --- a/NetworkPkg/HttpDxe/HttpImpl.c > +++ b/NetworkPkg/HttpDxe/HttpImpl.c > @@ -1,9 +1,9 @@ > /** @file > Implementation of EFI_HTTP_PROTOCOL protocol interfaces. >=20 > - Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.
> + Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.
> (C) Copyright 2015-2016 Hewlett Packard Enterprise Development LP
>=20 > This program and the accompanying materials > are licensed and made available under the terms and conditions of the > BSD License > which accompanies this distribution. The full text of the license may > be found at > @@ -279,15 +279,16 @@ EfiHttpRequest ( > } >=20 > Request =3D HttpMsg->Data.Request; >=20 > // > - // Only support GET, HEAD, PATCH, PUT and POST method in current > implementation. > + // Only support GET, HEAD, DELETE, PATCH, PUT and POST method in > current implementation. > // > if ((Request !=3D NULL) && (Request->Method !=3D HttpMethodGet) && > - (Request->Method !=3D HttpMethodHead) && (Request->Method !=3D > HttpMethodPut) && > - (Request->Method !=3D HttpMethodPost) && (Request->Method !=3D > HttpMethodPatch)) { > + (Request->Method !=3D HttpMethodHead) && (Request->Method !=3D > HttpMethodDelete) && > + (Request->Method !=3D HttpMethodPut) && (Request->Method !=3D > HttpMethodPost) && > + (Request->Method !=3D HttpMethodPatch)) { > return EFI_UNSUPPORTED; > } >=20 > HttpInstance =3D HTTP_INSTANCE_FROM_PROTOCOL (This); >=20 > -- > 2.16.2.windows.1