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

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 UTC