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>
This commit is contained in:
Saloni Kasbekar 2024-07-23 13:02:37 -07:00 committed by mergify[bot]
parent 9761137743
commit ab6ad2fbdb
1 changed files with 5 additions and 0 deletions

View File

@ -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;