mina-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edeolive...@apache.org
Subject svn commit: r759662 - /mina/trunk/core/src/main/java/org/apache/mina/proxy/handlers/http/ntlm/NTLMUtilities.java
Date Sun, 29 Mar 2009 10:43:02 GMT
Author: edeoliveira
Date: Sun Mar 29 10:43:02 2009
New Revision: 759662

URL: http://svn.apache.org/viewvc?rev=759662&view=rev
Log:
Enhanced & eased comprehension

Modified:
    mina/trunk/core/src/main/java/org/apache/mina/proxy/handlers/http/ntlm/NTLMUtilities.java

Modified: mina/trunk/core/src/main/java/org/apache/mina/proxy/handlers/http/ntlm/NTLMUtilities.java
URL: http://svn.apache.org/viewvc/mina/trunk/core/src/main/java/org/apache/mina/proxy/handlers/http/ntlm/NTLMUtilities.java?rev=759662&r1=759661&r2=759662&view=diff
==============================================================================
--- mina/trunk/core/src/main/java/org/apache/mina/proxy/handlers/http/ntlm/NTLMUtilities.java
(original)
+++ mina/trunk/core/src/main/java/org/apache/mina/proxy/handlers/http/ntlm/NTLMUtilities.java
Sun Mar 29 10:43:02 2009
@@ -92,9 +92,12 @@
                 BufferedReader reader = new BufferedReader(
                         new InputStreamReader(pr.getInputStream()));
                 pr.waitFor();
+                
                 String line;
-                while ((line = reader.readLine()) != null && "".equals(line))
-                    ;
+                do {
+                	  line = reader.readLine();
+                } while ((line != null) && (line.length() != 0));
+                
                 int pos = line.toLowerCase().indexOf("version");
 
                 if (pos == -1) {



Mime
View raw message