File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments