minor updates for headers

This commit is contained in:
David Bomba 2024-10-02 12:46:30 +10:00
parent 01e49d20ad
commit bfb5d95569
1 changed files with 5 additions and 1 deletions

View File

@ -21,6 +21,7 @@ class NinjaPdf
{
$client = new \GuzzleHttp\Client(['headers' => [
'X-Ninja-Token' => 'test_token_for_now',
'X-URL' => config('ninja.app_url'),
],
]);
@ -28,6 +29,9 @@ class NinjaPdf
RequestOptions::JSON => ['html' => $html],
]);
return $response->getBody()->getContents();
}
}