Author: dkulp
Date: Mon Jun 18 18:44:54 2007
New Revision: 548549

URL: http://svn.apache.org/viewvc?view=rev&rev=548549
Log:
Minor update to allow jetty to not chunk the reponse if the entire thing fit 
into the NIO buffer it's using.

Modified:
    
incubator/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java

Modified: 
incubator/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
URL: 
http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java?view=diff&rev=548549&r1=548548&r2=548549
==============================================================================
--- 
incubator/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
 (original)
+++ 
incubator/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/AbstractHTTPDestination.java
 Mon Jun 18 18:44:54 2007
@@ -406,17 +406,8 @@
                     wrappedStream = responseStream;
                 }
             }
-            commitResponse();
-        }
-
-        
-
-        private void commitResponse() {
-            try {
-                response.flushBuffer();
-            } catch (IOException e) {
-                e.printStackTrace();
-            }
+            wrappedStream.close();
+            response.flushBuffer();
         }
     }
 


Reply via email to