Skip to content

Commit 625ad81

Browse files
committed
modify:when download file will send the correct minitype
1 parent 57d2ef5 commit 625ad81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

XEngine_Source/XEngine_StorageApp/StorageApp_Download.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ BOOL XEngine_Task_HttpDownload(LPCTSTR lpszClientAddr, LPCTSTR lpszMsgBuffer, in
196196
st_HDRParam.nHttpCode = 200;
197197
st_HDRParam.bIsClose = TRUE;
198198
}
199-
_tcscpy(st_HDRParam.tszMimeType, _T("bin"));
199+
BaseLib_OperatorString_GetFileAndPath(tszFileDir, NULL, NULL, NULL, st_HDRParam.tszMimeType);
200200
RfcComponents_HttpServer_SendMsgEx(xhDLHttp, tszSDBuffer, &nSDLen, &st_HDRParam, NULL, ullSize);
201201
XEngine_Net_SendMsg(lpszClientAddr, tszSDBuffer, nSDLen, STORAGE_NETTYPE_HTTPDOWNLOAD);
202202
//不能在send之前调用

0 commit comments

Comments
 (0)