From 0e48177ad85091c2e77dbd8b44426a58bf267fd9 Mon Sep 17 00:00:00 2001 From: theli Date: Mon, 20 Jun 2005 15:57:03 +0000 Subject: [PATCH] *) Bugfix of NullPointerException when sending Error Respond git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@305 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/http/httpd.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/de/anomic/http/httpd.java b/source/de/anomic/http/httpd.java index 95c9db869..03dfc912e 100644 --- a/source/de/anomic/http/httpd.java +++ b/source/de/anomic/http/httpd.java @@ -1123,7 +1123,7 @@ public final class httpd implements serverHandler { httpHeader header = new httpHeader(); header.put(httpHeader.DATE, httpc.dateString(httpc.nowDate())); header.put(httpHeader.CONTENT_TYPE, "text/html"); - header.put(httpHeader.CONTENT_LENGTH, "" + o.size()); + header.put(httpHeader.CONTENT_LENGTH, "" + result.length); header.put(httpHeader.PRAGMA, "no-cache"); sendRespondHeader(conProp,respond,httpVersion,httpStatusCode,httpStatusText,header);