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 d4049ed

Browse filesBrowse files
committed
minor #15191 [Testing] Every custom header in functional testing client must have HTTP_ prefix (Ferror)
This PR was submitted for the 5.x branch but it was merged into the 4.4 branch instead. Discussion ---------- [Testing] Every custom header in functional testing client must have HTTP_ prefix <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Due to symfony/symfony#5074 issue, I would propose to add a simple caution block with information, that the `HTTP_` prefix is mandatory - it will save some hours for others. Commits ------- 8e5d9bc Every custom header in testing client must have HTTP prefix
2 parents f57055d + 8e5d9bc commit d4049ed
Copy full SHA for d4049ed

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed

‎testing.rst

Copy file name to clipboardExpand all lines: testing.rst
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,6 +1029,10 @@ You can also override HTTP headers on a per request basis::
10291029
'HTTP_USER_AGENT' => 'MySuperBrowser/1.0',
10301030
]);
10311031

1032+
.. caution::
1033+
1034+
Every custom header must have `HTTP_` prefix.
1035+
10321036
.. tip::
10331037

10341038
The test client is available as a service in the container in the ``test``

0 commit comments

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