Skip to content

Commit d294547

Browse files
committed
feat: lowercase headers to exclude in exapp proxy
Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
1 parent 1b65b4e commit d294547

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/Controller/ExAppProxyController.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,11 @@ 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+
if ($headersToExclude === false) {
325+
$headersToExclude = [];
326+
}
327+
$headersToExclude = array_map('strtolower', $headersToExclude);
328+
324329
if (!in_array('x-origin-ip', $headersToExclude)) {
325330
$headersToExclude[] = 'x-origin-ip';
326331
}

0 commit comments

Comments
 (0)