mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-09 12:39:30 +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';
|
$hbUrl = 'https://logs.pelican.dev';
|
||||||
try {
|
try {
|
||||||
$response = Http::asMultipart()->post($hbUrl, [
|
$response = Http::timeout(10)->asMultipart()->post($hbUrl, [
|
||||||
[
|
[
|
||||||
'name' => 'c',
|
'name' => 'c',
|
||||||
'contents' => $content,
|
'contents' => $content,
|
||||||
|
|||||||
@ -48,7 +48,7 @@ class ViewLogs extends BaseViewLog
|
|||||||
|
|
||||||
$hbUrl = 'https://logs.pelican.dev';
|
$hbUrl = 'https://logs.pelican.dev';
|
||||||
try {
|
try {
|
||||||
$response = Http::asMultipart()->post($hbUrl, [
|
$response = Http::timeout(10)->asMultipart()->post($hbUrl, [
|
||||||
[
|
[
|
||||||
'name' => 'c',
|
'name' => 'c',
|
||||||
'contents' => $content,
|
'contents' => $content,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user