Fix compilation errors.

This commit is contained in:
Vibhav Pant
2023-08-27 14:06:50 +05:30
parent 4819e2c220
commit 3ad3a3431b
7 changed files with 42 additions and 27 deletions
@@ -300,7 +300,7 @@ ImplementationPlatform::SendRequest(const WebRequest &request) {
if (request.method == "GET")
curl_easy_setopt(handle, CURLOPT_HTTPGET, 1L);
else if (request.method == "POST")
curl_easy_setopt(handle, CURLOPT_HTTPPOST, 1L);
curl_easy_setopt(handle, CURLOPT_POST, 1L);
else
curl_easy_setopt(handle, CURLOPT_CUSTOMREQUEST, request.method.c_str());