- don't send Message Body on HEAD requests, even in the case of an error

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1669 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
hermens 19 years ago
parent a7248fbb0a
commit c8f5adea4d

@ -1142,8 +1142,10 @@ public final class httpd implements serverHandler {
header.put(httpHeader.PRAGMA, "no-cache");
sendRespondHeader(conProp,respond,httpVersion,httpStatusCode,httpStatusText,header);
// write the array to the client
serverFileUtils.write(result, respond);
if (! method.equals(httpHeader.METHOD_HEAD)) {
// write the array to the client
serverFileUtils.write(result, respond);
}
respond.flush();
} catch (Exception e) {
throw new IOException(e.getMessage());

Loading…
Cancel
Save