Skip to content

Commit 03800d3

Browse files
committed
- supports X-Forwarded-* headers
1 parent 7e7d0d9 commit 03800d3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ServerRequest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,6 @@ protected function extractHttpHeaders(array $server): void
151151
// Calisthenics :)
152152
\str_starts_with($k, 'HTTP_') && $this->normalizeHeader(\str_replace('HTTP_', '', $k), $v, false);
153153
}
154-
unset($this->headers['X-Forwarded-For'], $this->headers['X-Forwarded-Proto']);
155-
unset($this->headersMap['x-forwarded-for'], $this->headersMap['x-forwarded-proto']);
156154
if (isset($server['HTTP_IF_NONE_MATCH'])) {
157155
// ETag workaround for various broken Apache2 versions
158156
$this->headers['ETag'] = \str_replace('-gzip', '', $server['HTTP_IF_NONE_MATCH']);

0 commit comments

Comments
 (0)