Skip to content

Commit 404c157

Browse files
authored
Merge pull request #568 from nextcloud/feat/lower-headers
feat: lowercase headers to exclude in exapp proxy
2 parents b36b8f1 + b7dcdd0 commit 404c157

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Controller/ExAppProxyController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,8 @@ private function passesExAppProxyRouteAccessLevelCheck(int $accessLevel): bool {
321321

322322
private function buildHeadersWithExclude(array $route, array $headers): array {
323323
$headersToExclude = json_decode($route['headers_to_exclude'], true);
324+
$headersToExclude = array_map('strtolower', $headersToExclude);
325+
324326
if (!in_array('x-origin-ip', $headersToExclude)) {
325327
$headersToExclude[] = 'x-origin-ip';
326328
}

0 commit comments

Comments
 (0)