mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 06:27:52 +00:00
Fix #20 Add timeout to push server call
This commit is contained in:
@@ -42,6 +42,7 @@ function notifyChange($data) {
|
|||||||
'Authorization: ' . $key,
|
'Authorization: ' . $key,
|
||||||
'Content-Type: application/json',
|
'Content-Type: application/json',
|
||||||
),
|
),
|
||||||
|
CURLOPT_TIMEOUT => 2,
|
||||||
CURLOPT_POSTFIELDS => json_encode($data),
|
CURLOPT_POSTFIELDS => json_encode($data),
|
||||||
));
|
));
|
||||||
$resp = curl_exec($ch);
|
$resp = curl_exec($ch);
|
||||||
|
|||||||
Reference in New Issue
Block a user