reply.setHeaderValue(Reply.H_PROXY_AUTHENTICATE, null);
reply.setHeaderValue(Reply.H_PUBLIC, null);
reply.setHeaderValue(Reply.H_TRANSFER_ENCODING, null);
reply.setHeaderValue(Reply.H_UPGRADE, null);
reply.setHeaderValue(Reply.H_TRAILER, null);
reply.removeHeader("keep-alive");
// Get rid of the fields enumerated in the connection header:
String conn[] = rep.getConnection();
if (conn != null) {
for (int i = 0 ; i < conn.length ; i++)
reply.removeHeader(conn[i]);