W3C home > Mailing lists > Public > www-validator-cvs@w3.org > February 2009

2002/css-validator/org/w3c/css/servlet CssValidator.java,1.41,1.42

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 26 Feb 2009 10:41:27 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1LcdgF-0003gn-CE@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/servlet
In directory hutz:/tmp/cvs-serv14164

Modified Files:
	CssValidator.java 
Log Message:
added Vary header


Index: CssValidator.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/servlet/CssValidator.java,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- CssValidator.java	16 Feb 2009 16:42:14 -0000	1.41
+++ CssValidator.java	26 Feb 2009 10:41:25 -0000	1.42
@@ -743,8 +743,9 @@
      * @param output
      * @throws MimeTypeFormatException
      */
-    private void buildHeader(ApplContext ac, HttpServletResponse res, String output) {
-
+    private void buildHeader(ApplContext ac, HttpServletResponse res, 
+			     String output)
+    {
 	// I don't want cache for the response (inhibits proxy)
 	res.setHeader("Pragma", "no-cache"); // @@deprecated
 	res.setHeader("Cache-Control", "no-cache");
@@ -807,6 +808,7 @@
 	    res.setHeader("Content-Language", "en");
 	    res.setHeader("charset", Utf8Properties.ENCODING);
 	}
+	res.setHeader("Vary", "Accept-Language");
     }
 
     private void handleError(HttpServletResponse res, ApplContext ac,
Received on Thursday, 26 February 2009 10:41:35 GMT

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