mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Fix /unlist request
This commit is contained in:
parent
1b2b7658a8
commit
bdf13b6957
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue