CVS 2002/css-validator/org/w3c/css/util

Update of /sources/public/2002/css-validator/org/w3c/css/util
In directory roscoe:/tmp/cvs-serv16009/util

Modified Files:
	HTTPURL.java 
Log Message:
UA string (updated and only in one place now)

--- /sources/public/2002/css-validator/org/w3c/css/util/HTTPURL.java	2012/08/04 21:17:07	1.28
+++ /sources/public/2002/css-validator/org/w3c/css/util/HTTPURL.java	2013/02/11 15:01:51	1.29
@@ -4,11 +4,12 @@
  *  http://www.w3.org/Consortium/Legal/
  *
  * HTTPURL.java
- * $Id: HTTPURL.java,v 1.28 2012/08/04 21:17:07 ylafon Exp $
+ * $Id: HTTPURL.java,v 1.29 2013/02/11 15:01:51 ylafon Exp $
  */
 package org.w3c.css.util;
 
 import org.apache.velocity.io.UnicodeInputStream;
+import org.w3c.css.servlet.CssValidator;
 import org.w3c.www.mime.MimeType;
 import org.w3c.www.mime.MimeTypeFormatException;
 
@@ -30,7 +31,7 @@
 
 /**
  * @author Philippe Le Hegaret
- * @version $Revision: 1.28 $
+ * @version $Revision: 1.29 $
  */
 public class HTTPURL {
 
@@ -77,6 +78,8 @@
 				return "(Unused)";
 			case 307:
 				return "Temporary Redirect";
+			case 308:
+				return "Permanent Redirect";
 			case 400:
 				return "Bad Request";
 			case 401:
@@ -222,8 +225,7 @@
 		urlC.setRequestProperty("Pragma", "no-cache");
 		urlC.setRequestProperty("Cache-Control", "no-cache, no-store");
 		// for the fun
-		urlC.setRequestProperty("User-Agent",
-				"Jigsaw/2.2.5 W3C_CSS_Validator_JFouffa/2.0");
+		urlC.setRequestProperty("User-Agent", CssValidator.server_name);
 		// referrer
 		setReferrer(urlC, ref);
 		// relay authorization information

Received on Monday, 11 February 2013 15:01:52 UTC