chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1753466 - /chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/OkHttpHttpInvoker.java
Date Wed, 20 Jul 2016 08:36:29 GMT
Author: fmui
Date: Wed Jul 20 08:36:28 2016
New Revision: 1753466

URL: http://svn.apache.org/viewvc?rev=1753466&view=rev
Log:
OkHttp: flush early

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/OkHttpHttpInvoker.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/OkHttpHttpInvoker.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/OkHttpHttpInvoker.java?rev=1753466&r1=1753465&r2=1753466&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/OkHttpHttpInvoker.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/http/OkHttpHttpInvoker.java
Wed Jul 20 08:36:28 2016
@@ -22,6 +22,7 @@ import static org.apache.chemistry.openc
 
 import java.io.IOException;
 import java.io.InputStream;
+import java.io.OutputStream;
 import java.math.BigInteger;
 import java.util.List;
 import java.util.Map;
@@ -120,7 +121,9 @@ public class OkHttpHttpInvoker implement
                     @Override
                     public void writeTo(BufferedSink sink) throws IOException {
                         try {
-                            writer.write(sink.outputStream());
+                            OutputStream out = sink.outputStream();
+                            writer.write(out);
+                            out.flush();
                         } catch (IOException ioe) {
                             throw ioe;
                         } catch (Exception e) {



Mime
View raw message