Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

Proxy: fix for never ending loading after POST

danielre5031585274b
diff --git a/source/de/anomic/http/httpdProxyHandler.java b/source/de/anomic/http/httpdProxyHandler.java
index 5ec1541ab..742364847 100644
--- a/source/de/anomic/http/httpdProxyHandler.java
+++ b/source/de/anomic/http/httpdProxyHandler.java
@@ -1123,7 +1123,10 @@ public final class httpdProxyHandler {
writeTextContent(res, new BufferedWriter(new OutputStreamWriter(outStream)));
}
- countedRespond.flush();
+ if (chunked != null) {
+ chunked.finish();
+ }
+ outStream.flush();
} finally {
// if opened ...
if(res != null) {