Jelajahi Sumber

merged branch stloyd/patch-3 (PR #2011)

Commits
-------

020fa51 [RedirectResponse] Added missing `doctype` and `title` tag

Discussion
----------

[RedirectResponse] Added missing `doctype` and `title` tag
Fabien Potencier 13 tahun lalu
induk
melakukan
07bdb8ac84

+ 4 - 1
src/Symfony/Component/HttpFoundation/RedirectResponse.php

@@ -37,10 +37,13 @@ class RedirectResponse extends Response
         }
 
         parent::__construct(
-            sprintf('<html>
+            sprintf('<!DOCTYPE html>
+<html>
     <head>
         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
         <meta http-equiv="refresh" content="1;url=%1$s" />
+
+        <title>Redirecting to %1$s</title>
     </head>
     <body>
         Redirecting to <a href="%1$s">%1$s</a>.