Skip to content

Commit 0707839

Browse files
committed
PR Changes
1 parent 6546af0 commit 0707839

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/countly.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,8 @@ log(Countly::LogLevel::DEBUG, "[Countly][sendHTTP] data: "+ data);
703703
}
704704

705705
if (hRequest) {
706-
bool ok = WinHttpSendRequest(hRequest, use_post ?L"content-type:application/x-www-form-urlencoded" : WINHTTP_NO_ADDITIONAL_HEADERS, 0, use_post ? (LPVOID)data.data() : WINHTTP_NO_REQUEST_DATA, use_post ? data.size() : 0, use_post ? data.size() : 0, 0) != 0;
706+
LPCWSTR contentType = L"content-type:application/x-www-form-urlencoded";
707+
bool ok = WinHttpSendRequest(hRequest, use_post ? contentType : WINHTTP_NO_ADDITIONAL_HEADERS, 0, use_post ? (LPVOID)data.data() : WINHTTP_NO_REQUEST_DATA, use_post ? data.size() : 0, use_post ? data.size() : 0, 0) != 0;
707708
if (ok) {
708709
ok = WinHttpReceiveResponse(hRequest, NULL);
709710
if (ok) {

0 commit comments

Comments
 (0)