Skip to content

Commit da12e14

Browse files
committed
update
1 parent 7929fa4 commit da12e14

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

web/github.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ function SendToChat(string $Where, array $Payload) : bool
202202
curl_setopt_array($c, [
203203
CURLOPT_USERAGENT => 'https://github.com/xPaw/GitHub-WebHook',
204204
CURLOPT_RETURNTRANSFER => true,
205-
CURLOPT_FOLLOWLOCATION => 0,
205+
CURLOPT_FOLLOWLOCATION => 1,
206206
CURLOPT_TIMEOUT => 30,
207207
CURLOPT_CONNECTTIMEOUT => 30,
208208
CURLOPT_URL => $Url,
@@ -213,7 +213,7 @@ function SendToChat(string $Where, array $Payload) : bool
213213
],
214214
]);
215215
$out = curl_exec($c);
216-
error_log("Out: {$out}");
216+
error_log("{$Url} Out: {$out}");
217217
$Code = curl_getinfo($c, CURLINFO_HTTP_CODE);
218218
curl_close($c);
219219
error_log('Rocket Chat HTTP ' . $Code . PHP_EOL);
@@ -224,7 +224,7 @@ function SendToChat(string $Where, array $Payload) : bool
224224
curl_setopt_array($c, [
225225
CURLOPT_USERAGENT => 'https://github.com/xPaw/GitHub-WebHook',
226226
CURLOPT_RETURNTRANSFER => true,
227-
CURLOPT_FOLLOWLOCATION => 0,
227+
CURLOPT_FOLLOWLOCATION => 1,
228228
CURLOPT_TIMEOUT => 30,
229229
CURLOPT_CONNECTTIMEOUT => 30,
230230
CURLOPT_URL => $Url,

0 commit comments

Comments
 (0)