diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-08-13 22:51:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-13 22:51:43 +0200 |
commit | 23801be55f570fc86cf2055df27f10e65f28c6d3 (patch) | |
tree | 1f8c03d0f8b66c529eaa0c05410661e10ad772a7 | |
parent | 8601bbc35d915d6dc1c847560d148981c518c27f (diff) | |
parent | 58106b0a73df24b3604b609e1a07ea4f28152f96 (diff) | |
download | nextcloud-server-23801be55f570fc86cf2055df27f10e65f28c6d3.tar.gz nextcloud-server-23801be55f570fc86cf2055df27f10e65f28c6d3.zip |
Merge pull request #10660 from danielkesselberg/bugfix/noid/fix-warning-signoff-checker
Pass HttpHeader as array
-rw-r--r-- | build/signed-off-checker.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/signed-off-checker.php b/build/signed-off-checker.php index f21854a83d1..32deceb47b7 100644 --- a/build/signed-off-checker.php +++ b/build/signed-off-checker.php @@ -60,9 +60,9 @@ if(!is_string($githubToken) || $githubToken === '') { $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); -curl_setopt($ch, CURLOPT_URL, 'https://api.github.com/repos/'.$repoOwner.'/'.$repoName.'/pulls/'.$pullRequestNumber.'/commits'); +curl_setopt($ch, CURLOPT_URL, 'https://api.github.com/repos/' . $repoOwner . '/' . $repoName . '/pulls/' . $pullRequestNumber . '/commits'); curl_setopt($ch, CURLOPT_USERAGENT, 'CI for Nextcloud (https://github.com/nextcloud/server)'); -curl_setopt($ch, CURLOPT_HTTPHEADER, 'Authorization: token ' . $githubToken); +curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: token ' . $githubToken]); $response = curl_exec($ch); curl_close($ch); |