Skip to content

Commit

Permalink
协议头支持
Browse files Browse the repository at this point in the history
  • Loading branch information
YuHuanTin committed Jun 9, 2022
1 parent 22510b7 commit 1f0bfb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WinhttpAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ char *Winhttp_Request(char *inUrl,char *inModel, char *inBody, char *inHandles,
printf("WinHttpAddRequestHeaders Error,LastError %lx\r\n",GetLastError());
}
}
if (!WinHttpSendRequest(hRequest, WINHTTP_NO_ADDITIONAL_HEADERS, 0, szBody.data(), szBody.empty() ? NULL : (DWORD)szBody.length(), 0, 0)){
if (!WinHttpSendRequest(hRequest, WINHTTP_NO_ADDITIONAL_HEADERS, 0, szBody.data(), szBody.empty() ? NULL : (DWORD)szBody.length(), szBody.length(), 0)){
printf("WinHttpSendRequest Error,LastError %lx\r\n",GetLastError());
}
if (!WinHttpReceiveResponse(hRequest,nullptr)){
Expand Down

0 comments on commit 1f0bfb8

Please sign in to comment.