Skip to content

Commit 090a931

Browse files
Merge pull request #39 from Countly/sdk-656
[sdk 656] http custom client's return value compile issue fixed
2 parents 938b97b + e29a1e7 commit 090a931

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/countly.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -656,20 +656,21 @@ log(Countly::LogLevel::DEBUG, "[Countly][sendHTTP] data: "+ data);
656656
data += "checksum256=";
657657
data += checksum_stream.str();
658658
}
659+
660+
Countly::HTTPResponse response;
661+
response.success = false;
662+
659663
#ifdef COUNTLY_USE_CUSTOM_HTTP
660664
if (http_client_function == nullptr) {
661665
log(Countly::LogLevel::FATAL, "Missing HTTP client function");
662-
return false;
666+
return response;
663667
}
664668

665669
return http_client_function(use_post, path, data);
666670
#else
667671
if (http_client_function != nullptr) {
668672
return http_client_function(use_post, path, data);
669673
}
670-
671-
Countly::HTTPResponse response;
672-
response.success = false;
673674
#ifdef _WIN32
674675
HINTERNET hSession;
675676
HINTERNET hConnect;

0 commit comments

Comments
 (0)