Skip to content

Commit daa81aa

Browse files
committed
Resolve a critical issue by flushing after every byte is written out to the response. This ensures that node.js, orbitd, and other "reverse ajax" or "streaming-style" techniques work using the proxy.
1 parent c41a9a8 commit daa81aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/browsermob/proxy/http/BrowserMobHttpClient.java

+1
Original file line numberDiff line numberDiff line change
@@ -1005,6 +1005,7 @@ public static long copyWithStats(InputStream is, OutputStream os) throws IOExcep
10051005
if (length != -1) {
10061006
bytesCopied += length;
10071007
os.write(buffer, 0, length);
1008+
os.flush();
10081009
}
10091010
} while (length != -1);
10101011
} finally {

0 commit comments

Comments
 (0)