Skip to content

Commit 981c7ae

Browse files
[SDK 662] Get request fix on linux (#45)
* Get request fix on linux * change log entry added Co-authored-by: ArtursKadikis <[email protected]>
1 parent d8716db commit 981c7ae

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* ! Minor breaking change ! Default automatic session update duration changed to 60 seconds.
44
* Added a call to change the automatic session update duration.
55
* Fixed a bug where session duration was reported wrong.
6+
* Fixed a bug that caused GET requests to fail on Linux.
67
* Fixed bug when changing device id with server merge.
78
* Fixed bug when device id was changed without server merge. Previously the new session was started with the old device ID and not the new one.
89
* Fixed a bug that was a typo ('COUNTLY_CUSTOM_HTTP' instead of 'COUNTLY_USE_CUSTOM_HTTP') in the cmake file that cause the SDK to be misconfigured.

src/countly.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ log(Countly::LogLevel::DEBUG, "[Countly][sendHTTP] data: "+ data);
811811

812812
if (!use_post) {
813813
full_url_stream << '?' << data;
814-
curl_easy_setopt(curl, CURLOPT_NOBODY, 1);
814+
curl_easy_setopt(curl, CURLOPT_HTTPGET, 1);
815815
} else {
816816
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, data.c_str());
817817
}

0 commit comments

Comments
 (0)