From 751a778b54b8fbdb8205f702da592f43b655e5d4 Mon Sep 17 00:00:00 2001 From: theli Date: Fri, 19 Aug 2005 08:28:43 +0000 Subject: [PATCH] *) Bugfix for heise newsletter Problem See: http://www.yacy-forum.de/viewtopic.php?p=7836#7836 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@560 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/http/httpdProxyHandler.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/de/anomic/http/httpdProxyHandler.java b/source/de/anomic/http/httpdProxyHandler.java index 52200956d..03faba792 100644 --- a/source/de/anomic/http/httpdProxyHandler.java +++ b/source/de/anomic/http/httpdProxyHandler.java @@ -921,6 +921,9 @@ public final class httpdProxyHandler extends httpdAbstractHandler implements htt try { remote = (yAddress == null) ? newhttpc(host, port, timeout) : newhttpc(yAddress, timeout); res = remote.POST(remotePath, requestHeader, body); + + // filtering out unwanted headers + this.removeHopByHopHeaders(res.responseHeader); // if the content length is not set we need to use chunked content encoding long contentLength = res.responseHeader.contentLength(); @@ -931,9 +934,7 @@ public final class httpdProxyHandler extends httpdAbstractHandler implements htt chunked = new httpChunkedOutputStream(respond); } - // filtering out unwanted headers - this.removeHopByHopHeaders(res.responseHeader); - + // sending response headers httpd.sendRespondHeader(conProp,respond,httpVer,Integer.parseInt(res.status.split(" ")[0]),res.responseHeader); // respondHeader(respond, res.status, res.responseHeader); res.writeContent((chunked != null) ? chunked : respond, null);