Fix /unlist request

This commit is contained in:
Felice D'Angelo 2024-02-08 17:09:26 +00:00
parent 1b2b7658a8
commit bdf13b6957

View file

@ -493,7 +493,8 @@ HMS_unlist (void)
if (! hms) if (! hms)
return 0; return 0;
curl_easy_setopt(hms->curl, CURLOPT_CUSTOMREQUEST, "POST"); curl_easy_setopt(hms->curl, CURLOPT_POST, 1);
curl_easy_setopt(hms->curl, CURLOPT_POSTFIELDSIZE, 0);
ok = HMS_do(hms); ok = HMS_do(hms);
HMS_end(hms); HMS_end(hms);
@ -508,7 +509,8 @@ HMS_unlist (void)
if (! hms) if (! hms)
return 0; return 0;
curl_easy_setopt(hms->curl, CURLOPT_CUSTOMREQUEST, "POST"); curl_easy_setopt(hms->curl, CURLOPT_POST, 1);
curl_easy_setopt(hms->curl, CURLOPT_POSTFIELDSIZE, 0);
ok = HMS_do(hms); ok = HMS_do(hms);
HMS_end(hms); HMS_end(hms);