summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaloni Kasbekar <saloni.kasbekar@intel.com>2024-07-23 13:02:37 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-08-07 23:01:48 +0000
commitab6ad2fbdbaad1eb3a766973d6f587685d784d48 (patch)
tree6faf4ca6e929c685217288fbd0e8100062b5c5bc
parent976113774320e5f18bb5bd6f21dd062c1d74f3d4 (diff)
downloadedk2-ab6ad2fbdbaad1eb3a766973d6f587685d784d48.tar.gz
edk2-ab6ad2fbdbaad1eb3a766973d6f587685d784d48.tar.bz2
edk2-ab6ad2fbdbaad1eb3a766973d6f587685d784d48.zip
NetworkPkg/DxeHttpLib: Support HTTP CONNECT message in Tx path.
Add HTTP CONNECT message support in HttpGenRequestMessage() Signed-off-by: Saloni Kasbekar <saloni.kasbekar@intel.com>
-rw-r--r--NetworkPkg/Library/DxeHttpLib/DxeHttpLib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/NetworkPkg/Library/DxeHttpLib/DxeHttpLib.c b/NetworkPkg/Library/DxeHttpLib/DxeHttpLib.c
index 21813463aa..f1da69bbf7 100644
--- a/NetworkPkg/Library/DxeHttpLib/DxeHttpLib.c
+++ b/NetworkPkg/Library/DxeHttpLib/DxeHttpLib.c
@@ -1927,6 +1927,11 @@ HttpGenRequestMessage (
CopyMem (RequestPtr, HTTP_METHOD_DELETE, StrLength);
RequestPtr += StrLength;
break;
+ case HttpMethodConnect:
+ StrLength = sizeof (HTTP_METHOD_CONNECT) - 1;
+ CopyMem (RequestPtr, HTTP_METHOD_CONNECT, StrLength);
+ RequestPtr += StrLength;
+ break;
default:
ASSERT (FALSE);
Status = EFI_INVALID_PARAMETER;