Accept JSON

This commit is contained in:
iVampireSP.com 2022-11-16 10:44:55 +08:00
parent f2170c3506
commit 99158b86b3
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -37,7 +37,8 @@ public function boot()
// 关闭证书验证
return Http::withoutVerifying()->withHeaders([
'X-Module-Api-Token' => $api_token,
'Content-Type' => 'application/json'
'Content-Type' => 'application/json',
'Accept' => 'application/json',
])->withOptions([
'version' => 2,
])->baseUrl($url);