[EMAIL PROTECTED] wrote:
Author: markt
Date: Tue Jan 10 15:06:22 2006
New Revision: 367826

URL: http://svn.apache.org/viewcvs?rev=367826&view=rev
Log:
Alternative patch for bug 29214 based on Remy's comments

I am merging the latest version of the patch in my tree, but this change is a bit sneaky.

@@ -744,7 +747,8 @@
             if (index != -1) {
                 int len = type.length();
                 index++;
-                while (index < len && Character.isSpace(type.charAt(index))) {
+                while (index < len
+                        && Character.isWhitespace(type.charAt(index))) {
                     index++;
                 }
                 if (index+7 < len

I spent some time eliminating all the warnings that my Eclipse was reporting sometimes in the past, and saw that isSpace was deprecated. isWhitespace seemed to be a replacement, but is actually different. HTTP needs to stay with the non character encoded version. Ie, the deprecated method is actually useful, since it does exactly what HTTP needs.

Rémy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to