Skip to content

Commit f914aca

Browse files
committed
modify:reply post request for http
1 parent cd46d0c commit f914aca

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

XEngine_Source/XEngine_ServiceApp/XEngine_HttpApp/XEngine_HTTPTask.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ bool XEngine_HTTPTask_Handle(RFCCOMPONENTS_HTTP_REQPARAM* pSt_HTTPParam, LPCXSTR
7272
if (0 == _tcsxnicmp(lpszMethodPost, pSt_HTTPParam->tszHttpMethod, _tcsxlen(lpszMethodPost)))
7373
{
7474
//编写自己的代码
75+
HttpProtocol_Server_SendMsgEx(xhHTTPPacket, tszMsgBuffer, &nLen, &st_HDRParam);
76+
//打包完毕后才能发送给客户端
77+
XEngine_Network_Send(lpszClientAddr, tszMsgBuffer, nLen);
78+
XLOG_PRINT(xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_INFO, _X("HTTP客户端:%s,发送POST请求给服务器"), lpszClientAddr);
7579
}
7680
else if (0 == _tcsxnicmp(lpszMethodGet, pSt_HTTPParam->tszHttpMethod, _tcsxlen(lpszMethodGet)))
7781
{

0 commit comments

Comments
 (0)