File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments