W3C home > Mailing lists > Public > www-validator-cvs@w3.org > March 2011

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

From: Mercurial notifier <nobody@w3.org>
Date: Sun, 13 Mar 2011 11:12:07 +0000
Message-Id: <E1PyjDT-00071x-2B@mcbain.w3.org>
To: markup-validator updates <www-validator-cvs@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:26 GMT