使用 HTTP 2

This commit is contained in:
iVampireSP.com 2022-10-04 18:34:23 +08:00
parent b268d28c01
commit 555049d803
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -21,7 +21,6 @@ public function register()
//
require_once app()->basePath('app') . '/Helpers.php';
}
public function boot()
@ -38,6 +37,8 @@ public function boot()
return Http::withoutVerifying()->withHeaders([
'X-Remote-Api-Token' => $api_token,
'Content-Type' => 'application/json'
])->withOptions([
'version' => 2,
])->baseUrl($url);
});