This commit is contained in:
denisdulici 2017-10-13 15:34:39 +03:00
parent 8c8f08b2f3
commit 729840c26c

View File

@ -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;
}