fixed #48
This commit is contained in:
parent
8c8f08b2f3
commit
729840c26c
|
|
@ -17,7 +17,10 @@ class AddXHeader
|
|||
{
|
||||
$response = $next($request);
|
||||
|
||||
$response->header('X-Akaunting', 'Free Accounting Software');
|
||||
// Check if we should add header
|
||||
if (method_exists($response, 'header')) {
|
||||
$response->header('X-Akaunting', 'Free Accounting Software');
|
||||
}
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue