Skip to content

Commit

Permalink
Only pass Authorization header to PHP if set
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasbestle authored and bastianallgeier committed Oct 6, 2022
1 parent 0861613 commit 44812f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .htaccess
@@ -1,5 +1,5 @@
# Kirby .htaccess
# revision 2020-06-15
# revision 2022-09-15

# rewrite rules
<IfModule mod_rewrite.c>
Expand Down Expand Up @@ -43,7 +43,7 @@ RewriteRule ^(.*) index.php [L]
</IfModule>

# pass the Authorization header to PHP
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
SetEnvIf Authorization "(.+)" HTTP_AUTHORIZATION=$1

# compress text file responses
<IfModule mod_deflate.c>
Expand Down

0 comments on commit 44812f9

Please sign in to comment.