Skip to content

Commit df3b67f

Browse files
committed
modify:http authorize callback send len is useful
1 parent 3e1de86 commit df3b67f

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

XEngine_Source/XEngine_StorageApp/StorageApp_Center.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,11 @@ bool XEngine_Task_HttpCenter(LPCXSTR lpszClientAddr, LPCXSTR lpszMsgBuffer, int
7878
}
7979
if (st_ServiceCfg.st_XProxy.bAuthPass)
8080
{
81-
int nBLen = 0;
8281
int nResponseCode = 0;
8382
XCHAR* ptszBody = NULL;
8483

8584
Protocol_StoragePacket_BasicAuth(pSt_HTTPParam->tszHttpMethod, pSt_HTTPParam->tszHttpUri, lpszClientAddr, tszUserName, tszUserPass, tszSDBuffer, &nSDLen);
86-
APIClient_Http_Request(_X("POST"), st_ServiceCfg.st_XProxy.tszAuthPass, tszSDBuffer, &nResponseCode, &ptszBody, &nBLen);
85+
APIClient_Http_Request(_X("POST"), st_ServiceCfg.st_XProxy.tszAuthPass, tszSDBuffer, &nResponseCode, &ptszBody, &nSDLen);
8786
if (200 != nResponseCode)
8887
{
8988
st_HDRParam.bIsClose = true;

XEngine_Source/XEngine_StorageApp/StorageApp_Download.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,12 @@ bool XEngine_Task_HttpDownload(LPCXSTR lpszClientAddr, LPCXSTR lpszMsgBuffer, in
176176
}
177177
if (st_ServiceCfg.st_XProxy.bAuthPass)
178178
{
179-
int nBLen = 0;
180179
int nCode = 0;
181180
int nResponseCode = 0;
182181
XCHAR* ptszBody = NULL;
183182

184183
Protocol_StoragePacket_BasicAuth(pSt_HTTPParam->tszHttpMethod, pSt_HTTPParam->tszHttpUri, lpszClientAddr, tszUserName, tszUserPass, tszSDBuffer, &nSDLen);
185-
APIClient_Http_Request(_X("POST"), st_ServiceCfg.st_XProxy.tszAuthPass, tszSDBuffer, &nResponseCode, &ptszBody, &nBLen);
184+
APIClient_Http_Request(_X("POST"), st_ServiceCfg.st_XProxy.tszAuthPass, tszSDBuffer, &nResponseCode, &ptszBody, &nSDLen);
186185
if (200 != nResponseCode)
187186
{
188187
st_HDRParam.bIsClose = true;

XEngine_Source/XEngine_StorageApp/StorageApp_UPLoader.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,11 @@ bool XEngine_Task_HttpUPLoader(LPCXSTR lpszClientAddr, LPCXSTR lpszMsgBuffer, in
9797
}
9898
if (st_ServiceCfg.st_XProxy.bAuthPass)
9999
{
100-
int nBLen = 0;
101100
int nResponseCode = 0;
102101
XCHAR* ptszBody = NULL;
103102

104103
Protocol_StoragePacket_BasicAuth(pSt_HTTPParam->tszHttpMethod, pSt_HTTPParam->tszHttpUri, lpszClientAddr, tszUserName, tszUserPass, tszSDBuffer, &nSDLen);
105-
APIClient_Http_Request(_X("POST"), st_ServiceCfg.st_XProxy.tszAuthPass, tszSDBuffer, &nResponseCode, &ptszBody, &nBLen);
104+
APIClient_Http_Request(_X("POST"), st_ServiceCfg.st_XProxy.tszAuthPass, tszSDBuffer, &nResponseCode, &ptszBody, &nSDLen);
106105
if (200 != nResponseCode)
107106
{
108107
st_HDRParam.bIsClose = true;

0 commit comments

Comments
 (0)