Skip to content

Commit 7d6db25

Browse files
committed
PR Changes
1 parent c318953 commit 7d6db25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/countly.cpp

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

705705
if (hRequest) {
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;
706+
LPCWSTR headers = use_post ? L"content-type:application/x-www-form-urlencoded" : WINHTTP_NO_ADDITIONAL_HEADERS;
707+
bool ok = WinHttpSendRequest(hRequest, headers, 0, use_post ? (LPVOID)data.data() : WINHTTP_NO_REQUEST_DATA, use_post ? data.size() : 0, use_post ? data.size() : 0, 0) != 0;
708708
if (ok) {
709709
ok = WinHttpReceiveResponse(hRequest, NULL);
710710
if (ok) {

0 commit comments

Comments
 (0)