Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b182088

Browse filesBrowse files
minor #21495 Add HEADER_FORWARDED to setTrustedHeaderName docs (pascal-hofmann)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #21495). Discussion ---------- Add HEADER_FORWARDED to setTrustedHeaderName docs | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - <!-- - Bug fixes must be submitted against the lowest branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the master branch. - Please fill in this template according to the PR you're about to submit. - Replace this comment by a description of what your PR is solving. --> Commits ------- b46276e Add HEADER_FORWARDED to setTrustedHeaderName docs
2 parents fa9d24c + b46276e commit b182088
Copy full SHA for b182088

File tree

1 file changed

+1
-0
lines changed
Filter options

1 file changed

+1
-0
lines changed

‎src/Symfony/Component/HttpFoundation/Request.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Request.php
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ public static function getTrustedHosts()
596596
* * Request::HEADER_CLIENT_HOST: defaults to X-Forwarded-Host (see getHost())
597597
* * Request::HEADER_CLIENT_PORT: defaults to X-Forwarded-Port (see getPort())
598598
* * Request::HEADER_CLIENT_PROTO: defaults to X-Forwarded-Proto (see getScheme() and isSecure())
599+
* * Request::HEADER_FORWARDED: defaults to Forwarded (see RFC 7239)
599600
*
600601
* Setting an empty value allows to disable the trusted header for the given key.
601602
*

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.