Author: toad
Date: 2007-05-31 13:27:11 +0000 (Thu, 31 May 2007)
New Revision: 13415

Modified:
   trunk/freenet/src/freenet/clients/http/ToadletContextImpl.java
Log:
Document and fix

Modified: trunk/freenet/src/freenet/clients/http/ToadletContextImpl.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/ToadletContextImpl.java      
2007-05-31 13:23:30 UTC (rev 13414)
+++ trunk/freenet/src/freenet/clients/http/ToadletContextImpl.java      
2007-05-31 13:27:11 UTC (rev 13415)
@@ -375,6 +375,12 @@
                }
        }

+       /**
+        * Should the connection be closed after handling this request?
+        * @param isHTTP10 Did the client specify HTTP/1.0?
+        * @param headers Client headers.
+        * @return True if the connection should be closed.
+        */
        private static boolean shouldDisconnectAfterHandled(boolean isHTTP10, 
MultiValueTable headers) {
                String connection = (String) headers.get("connection");
                if(connection != null) {
@@ -385,7 +391,7 @@
                                return false;
                }
                if(isHTTP10 == true)
-                       return false;
+                       return true;
                return true;
        }



Reply via email to