Explorar o código

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 %!s(int64=13) %!d(string=hai) anos
pai
achega
07bdb8ac84
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      src/Symfony/Component/HttpFoundation/RedirectResponse.php

+ 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>.