Skip to content

Commit a6cbbb2

Browse files
committed
Revert "[#5771] remove another Response constant"
This reverts commit 63f44e3. The `Response::HTTP_BAD_REQUEST` constant was added in Symfony 2.4. Thus, removing it (as done it was done after #5771 for the `2.3` branch) must be reverted for the documentation of the `2.7` branch.
1 parent 98967bf commit a6cbbb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/http_cache.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ Here is how you can configure the Symfony reverse proxy to support the
912912
if ('127.0.0.1' !== $request->getClientIp()) {
913913
return new Response(
914914
'Invalid HTTP method',
915-
400
915+
Response::HTTP_BAD_REQUEST
916916
);
917917
}
918918

0 commit comments

Comments
 (0)