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 @@ -655,20 +655,21 @@ log(Countly::LogLevel::DEBUG, "[Countly][sendHTTP] data: "+ data);
655655 data += " checksum256=" ;
656656 data += checksum_stream.str ();
657657 }
658+
659+ Countly::HTTPResponse response;
660+ response.success = false ;
661+
658662#ifdef COUNTLY_USE_CUSTOM_HTTP
659663 if (http_client_function == nullptr ) {
660664 log (Countly::LogLevel::FATAL, " Missing HTTP client function" );
661- return false ;
665+ return response ;
662666 }
663667
664668 return http_client_function (use_post, path, data);
665669#else
666670 if (http_client_function != nullptr ) {
667671 return http_client_function (use_post, path, data);
668672 }
669-
670- Countly::HTTPResponse response;
671- response.success = false ;
672673#ifdef _WIN32
673674 HINTERNET hSession;
674675 HINTERNET hConnect;
You can’t perform that action at this time.
0 commit comments