mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-08 10:39:27 +01:00
add http timeout
This commit is contained in:
parent
3dc5b6e923
commit
33869e718c
@ -70,7 +70,7 @@ class ListLogs extends BaseListLogs
|
||||
|
||||
$hbUrl = 'https://logs.pelican.dev';
|
||||
try {
|
||||
$response = Http::asMultipart()->post($hbUrl, [
|
||||
$response = Http::timeout(10)->asMultipart()->post($hbUrl, [
|
||||
[
|
||||
'name' => 'c',
|
||||
'contents' => $content,
|
||||
|
||||
@ -48,7 +48,7 @@ class ViewLogs extends BaseViewLog
|
||||
|
||||
$hbUrl = 'https://logs.pelican.dev';
|
||||
try {
|
||||
$response = Http::asMultipart()->post($hbUrl, [
|
||||
$response = Http::timeout(10)->asMultipart()->post($hbUrl, [
|
||||
[
|
||||
'name' => 'c',
|
||||
'contents' => $content,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user