geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickmcgu...@apache.org
Subject svn commit: r517148 - /geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/internet/InternetHeaders.java
Date Mon, 12 Mar 2007 09:31:42 GMT
Author: rickmcguire
Date: Mon Mar 12 02:31:41 2007
New Revision: 517148

URL: http://svn.apache.org/viewvc?view=rev&rev=517148
Log:
GERONIMO-2863 Mail 1.4 InternetHeaders behavior difference compared to Sun's


Modified:
    geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/internet/InternetHeaders.java

Modified: geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/internet/InternetHeaders.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/internet/InternetHeaders.java?view=diff&rev=517148&r1=517147&r2=517148
==============================================================================
--- geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/internet/InternetHeaders.java
(original)
+++ geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/main/java/javax/mail/internet/InternetHeaders.java
Mon Mar 12 02:31:41 2007
@@ -113,6 +113,9 @@
                     // empty line terminates header
                     in.read(); // skip LF
                     break;
+                } else if ( c == 10) {
+                	// Line feed terminates header
+                	break;
                 } else if (Character.isWhitespace(ch)) {
                     // handle continuation
                     do {
@@ -144,7 +147,7 @@
                     }
                 }
 
-                while (c != 13) {
+                while (c != 13 && c != 10) {
                     ch = (char) c;
                     value.append(ch);
                     c = in.read();
@@ -153,7 +156,10 @@
                     }
                 }
                 // skip LF
-                c = in.read();
+                if (c == 13) {
+                	c = in.read();
+                }
+                
                 if (c == -1) {
                     break;
                 }



Mime
View raw message