mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 08:44:46 +02:00
Set content type
This commit is contained in:
parent
f795b38db5
commit
675c289780
@ -56,6 +56,7 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
Http::macro(
|
Http::macro(
|
||||||
'daemon',
|
'daemon',
|
||||||
fn (Node $node, array $headers = []) => Http::acceptJson()
|
fn (Node $node, array $headers = []) => Http::acceptJson()
|
||||||
|
->asJson()
|
||||||
->withToken($node->getDecryptedKey())
|
->withToken($node->getDecryptedKey())
|
||||||
->withHeaders($headers)
|
->withHeaders($headers)
|
||||||
->withOptions(['verify' => (bool) app()->environment('production')])
|
->withOptions(['verify' => (bool) app()->environment('production')])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user