*) 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
pull/1/head
theli 20 years ago
parent 7d8af6b41a
commit 751a778b54

@ -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);

Loading…
Cancel
Save