Skip to content

Commit

Permalink
Update middleware to return symfony response to catch more cases
Browse files Browse the repository at this point in the history
  • Loading branch information
JustSteveKing committed May 18, 2023
1 parent cafdfcc commit cefe10b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Http/Middleware/CertificateTransparencyPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
namespace Treblle\SecurityHeaders\Http\Middleware;

use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Closure;
use Symfony\Component\HttpFoundation\Response;

final class CertificateTransparencyPolicy
{
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Middleware/ContentTypeOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Treblle\SecurityHeaders\Http\Middleware;

use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Symfony\Component\HttpFoundation\Response;
use Closure;

final class ContentTypeOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Middleware/PermissionsPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Treblle\SecurityHeaders\Http\Middleware;

use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Symfony\Component\HttpFoundation\Response;
use Closure;

final class PermissionsPolicy
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Middleware/RemoveHeaders.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Closure;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Symfony\Component\HttpFoundation\Response;

final class RemoveHeaders
{
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Middleware/SetReferrerPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Closure;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Symfony\Component\HttpFoundation\Response;

final class SetReferrerPolicy
{
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Middleware/StrictTransportSecurity.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Treblle\SecurityHeaders\Http\Middleware;

use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Symfony\Component\HttpFoundation\Response;
use Closure;

final class StrictTransportSecurity
Expand Down

0 comments on commit cefe10b

Please sign in to comment.