This commit is contained in:
afornerot 2024-04-15 13:46:02 +02:00
parent d9448ccfee
commit e2142caa49
1 changed files with 0 additions and 1 deletions

View File

@ -337,7 +337,6 @@ class giteaService
$body = \Unirest\Request\Body::json($query); $body = \Unirest\Request\Body::json($query);
$body=str_replace('"'.$toblock.'"',$toblock,$body); $body=str_replace('"'.$toblock.'"',$toblock,$body);
$response=$this->api("POST",$apiurl,$body,$this->session->get("giteatoken")); $response=$this->api("POST",$apiurl,$body,$this->session->get("giteatoken"));
dump($response);
if(!$response||($response->code!="200"&&$response->code!="201")) return false; if(!$response||($response->code!="200"&&$response->code!="201")) return false;
else return $response->body; else return $response->body;
} }