Skip to content

Commit 11d9baa

Browse files
authored
Merge pull request #455 from siwa-pradler/patch-1
Fix FallbackMiddleware.php accept-encoding header
2 parents 0bc6c87 + b45f2ce commit 11d9baa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Classes/Middleware/FallbackMiddleware.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,17 +103,15 @@ protected function getHeaders(ServerRequestInterface $request, string &$possible
103103
if (is_file($possibleStaticFile . '.br') && is_readable($possibleStaticFile . '.br')) {
104104
$headers['Content-Encoding'] = 'br';
105105
$possibleStaticFile .= '.br';
106+
break;
106107
}
107-
108-
break;
109108
}
110109
if (str_contains($acceptEncoding, 'gzip')) {
111110
if (is_file($possibleStaticFile . '.gz') && is_readable($possibleStaticFile . '.gz')) {
112111
$headers['Content-Encoding'] = 'gzip';
113112
$possibleStaticFile .= '.gz';
113+
break;
114114
}
115-
116-
break;
117115
}
118116
}
119117

0 commit comments

Comments
 (0)