- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 29 Aug 2005 12:00:44 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/util
In directory hutz:/tmp/cvs-serv14471/util
Modified Files:
HTTPURL.java
Log Message:
Use the MimeType class to avoid issues with case and parameters
Index: HTTPURL.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/util/HTTPURL.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- HTTPURL.java 8 Aug 2005 13:19:46 -0000 1.15
+++ HTTPURL.java 29 Aug 2005 12:00:42 -0000 1.16
@@ -184,14 +184,18 @@
urlC.setRequestProperty("Cache-Control", "no-cache, no-store");
// for the fun
urlC.setRequestProperty("User-Agent",
- "Jigsaw/2.2.3 W3C_CSS_Validator_JFouffa/2.0");
+ "Jigsaw/2.2.5 W3C_CSS_Validator_JFouffa/2.0");
// relay authorization information
if (ac.getCredential() != null) {
urlC.setRequestProperty("Authorization",ac.getCredential());
}
// relay languages
if (ac.getLang() != null) {
- urlC.setRequestProperty("Accept-Language",ac.getLang());
+ if (ac.getLang().indexOf('*') == -1) {
+ urlC.setRequestProperty("Accept-Language", ac.getLang() + ",*");
+ } else {
+ urlC.setRequestProperty("Accept-Language",ac.getLang());
+ }
}
// should I put an Accept header?
urlC.setRequestProperty("Accept",
Received on Monday, 29 August 2005 12:00:54 UTC