* Change put to PUT when using curl.

This commit is contained in:
dingguodong
2021-06-24 15:02:04 +08:00
parent 3516898af2
commit 04d32851c3
+1 -1
View File
@@ -457,7 +457,7 @@ class gitlabModel extends model
$apiPath = "/projects/{$projectID}/hooks/{$hookID}";
$url = sprintf($apiRoot, $apiPath);
$response = commonModel::http($url, $postData, $options = array(CURLOPT_CUSTOMREQUEST => 'put'));
$response = commonModel::http($url, $postData, $options = array(CURLOPT_CUSTOMREQUEST => 'PUT'));
return $response;
}