We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27f1ec7 commit 3bdb82dCopy full SHA for 3bdb82d
turnrest.c
@@ -165,7 +165,7 @@ janus_turnrest_response *janus_turnrest_request(const char *user) {
165
JANUS_LOG(LOG_VERB, "Sending request: %s\n", request_uri);
166
janus_mutex_unlock(&api_mutex);
167
curl_easy_setopt(curl, CURLOPT_URL, request_uri);
168
- curl_easy_setopt(curl, api_http_get ? CURLOPT_HTTPGET : CURLOPT_POST, 1);
+ curl_easy_setopt(curl, (api_http_get ? CURLOPT_HTTPGET : CURLOPT_POST), 1);
169
if(!api_http_get) {
170
/* FIXME Some servers don't like a POST with no data */
171
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, query_string);
0 commit comments