add http timeout

This commit is contained in:
notCharles 2025-11-07 17:18:06 -05:00
parent 3dc5b6e923
commit 33869e718c
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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,