NetworkPkg:HttpDxe:Consume DxeHttpLib API changes
HttpGenRequestString is updated to HttpGenRequestMessage, with an additional argument. This patch updates the caller of the DxeHttpLib API. Also, we will avoid adding any '\0' to the string, which was added to make AsciiStrLen to work on the string. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Nagaraj Hegde <nagaraj-p.hegde@hpe.com> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Samer El-Haj-Mahmoud <elhaj@hpe.com>
This commit is contained in:
@@ -1462,8 +1462,9 @@ HttpTcpTransmit (
|
||||
{
|
||||
HTTP_TOKEN_WRAP *ValueInItem;
|
||||
EFI_STATUS Status;
|
||||
CHAR8 *RequestStr;
|
||||
CHAR8 *RequestMsg;
|
||||
CHAR8 *Url;
|
||||
UINTN RequestMsgSize;
|
||||
|
||||
ValueInItem = (HTTP_TOKEN_WRAP *) Item->Value;
|
||||
if (ValueInItem->TcpWrap.IsTxDone) {
|
||||
@@ -1483,10 +1484,11 @@ HttpTcpTransmit (
|
||||
//
|
||||
// Create request message.
|
||||
//
|
||||
Status = HttpGenRequestString (
|
||||
Status = HttpGenRequestMessage (
|
||||
ValueInItem->HttpToken->Message,
|
||||
Url,
|
||||
&RequestStr
|
||||
&RequestMsg,
|
||||
&RequestMsgSize
|
||||
);
|
||||
FreePool (Url);
|
||||
|
||||
@@ -1500,10 +1502,10 @@ HttpTcpTransmit (
|
||||
Status = HttpTransmitTcp (
|
||||
ValueInItem->HttpInstance,
|
||||
ValueInItem,
|
||||
(UINT8*) RequestStr,
|
||||
AsciiStrLen (RequestStr)
|
||||
(UINT8*) RequestMsg,
|
||||
RequestMsgSize
|
||||
);
|
||||
FreePool (RequestStr);
|
||||
FreePool (RequestMsg);
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user