W3C home > Mailing lists > Public > www-validator-cvs@w3.org > September 2007

2002/css-validator/org/w3c/css/util Codecs.java,1.5,1.6

From: Julien Grand-Mourcel via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 20 Sep 2007 12:07:34 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1IYKog-000088-Ml@lionel-hutz.w3.org>

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

Modified Files:
	Codecs.java 
Log Message:
Correcting a bug on file upload, when content-type is found

Index: Codecs.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/util/Codecs.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- Codecs.java	13 Sep 2007 10:17:40 -0000	1.5
+++ Codecs.java	20 Sep 2007 12:07:32 -0000	1.6
@@ -231,9 +231,10 @@
 
 		lchdr = hdr.toLowerCase();
 
-		if (lchdr.startsWith("content-type"))
+		if (lchdr.startsWith("content-type")) {
 			mimeType = lchdr.substring("content-type: ".length());
-		else if (!lchdr.startsWith("content-disposition")) continue;
+			continue;
+		}else if (!lchdr.startsWith("content-disposition")) continue;
 
 		int off = lchdr.indexOf("form-data", 20);
 
Received on Thursday, 20 September 2007 12:07:36 GMT

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