minor updates for headers
This commit is contained in:
parent
01e49d20ad
commit
bfb5d95569
|
|
@ -21,13 +21,17 @@ class NinjaPdf
|
||||||
{
|
{
|
||||||
$client = new \GuzzleHttp\Client(['headers' => [
|
$client = new \GuzzleHttp\Client(['headers' => [
|
||||||
'X-Ninja-Token' => 'test_token_for_now',
|
'X-Ninja-Token' => 'test_token_for_now',
|
||||||
],
|
'X-URL' => config('ninja.app_url'),
|
||||||
|
],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$response = $client->post($this->url, [
|
$response = $client->post($this->url, [
|
||||||
RequestOptions::JSON => ['html' => $html],
|
RequestOptions::JSON => ['html' => $html],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
||||||
return $response->getBody()->getContents();
|
return $response->getBody()->getContents();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue