markup-validator commit: Add Vary: Referer to uri=referer redirects when Referer is available.

changeset:   3217:ff04289cb4b8
user:        Ville Skyttä <ville.skytta@iki.fi>
date:        Sun Mar 13 13:06:19 2011 +0200
files:       httpd/cgi-bin/check
description:
Add Vary: Referer to uri=referer redirects when Referer is available.


diff -r b453edae6d5a -r ff04289cb4b8 httpd/cgi-bin/check
--- a/httpd/cgi-bin/check	Sun Mar 13 12:37:00 2011 +0200
+++ b/httpd/cgi-bin/check	Sun Mar 13 13:06:19 2011 +0200
@@ -2815,7 +2815,7 @@
                 if ($q->http('Accept-Language'));
             $q->param('accept-charset', $q->http('Accept-Charset'))
                 if ($q->http('Accept-Charset'));
-            print redirect &self_url_q($q, $File);
+            print redirect(-uri => &self_url_q($q, $File), -vary => 'Referer');
             exit;
         }
         else {

Received on Sunday, 13 March 2011 11:12:12 UTC