Skip to content

Commit

Permalink
fixed #48
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Oct 13, 2017
1 parent 8c8f08b commit 729840c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/Http/Middleware/AddXHeader.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ public function handle($request, Closure $next)
{
$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;
}
Expand Down

0 comments on commit 729840c

Please sign in to comment.