rem: doChunkEncoding = isSetupForChunkedEncoding(conn);
add: doChunkEncoding = IsSetupForChunkedEncoding(conn);
context: Ns_ConnConstructHeaders(Ns_Conn *conn, Ns_DString *dsPtr){    int   i, length;    char *reason;    char  buf[100];    char *value, *keep;    char *key, *lengthHdr;    Conn *connPtr;    int  doChunkEncoding = 0;    /*     * Construct the HTTP response status line.     */    connPtr = (Conn *) conn;    sprintf(buf, "%d", connPtr->responseStatus);    reason = "Unknown Reason";    for (i = 0; i < nreasons; i++) {	if (reasons[i].status == connPtr->responseStatus) {	    reason = reasons[i].reason;	    break;	}    }    doChunkEncoding = isSetupForChunkedEncoding(conn);    if (!doChunkEncoding)      Ns_DStringVarAppend(dsPtr, "HTTP/1.0 ", buf, " ", reason, "\r\n", NULL);    else      Ns_DStringVarAppend(dsPtr, "HTTP/1.1 ", buf, " ", reason, "\r\n", NULL);    /*     * Output any headers.     */    if (conn->outputheaders != NULL) {	/*	 * Update the response length value directly from the	 * header to be sent, i.e., don't trust programmers	 * correctly called Ns_ConnSetLengthHeader().	 */	length = connPtr->responseLength;	lengthHdr = Ns_SetIGet(conn->outputheaders, "content-length");	if (lengthHdr != NULL) {	    connPtr->responseLength = atoi(lengthHdr);	}		/*	 * Output a connection keep-alive header only on	 * basic HTTP status 200 GET responses which included	 * a valid and correctly set content-length header.	 */	if (nsconf.keepalive.enabled &&	    connPtr->headers != NULL &&	    connPtr->request != NULL &&	    ((connPtr->responseStatus == 200 &&	      (lengthHdr != NULL &&	      connPtr->responseLength == length)|| doChunkEncoding) ||	     connPtr->responseStatus == 304) &&	    STREQ(connPtr->request->method, "GET") &&	    (key = Ns_SetIGet(conn->headers, "connection")) != NULL &&	    STRIEQ(key, "keep-alive")) {	    conn->flags |= NS_CONN_KEEPALIVE;	    keep = "keep-alive";	} else {	    keep = "close";	}	Ns_ConnCondSetHeaders(conn, "Connection", keep);		for (i = 0; i < Ns_SetSize(conn->outputheaders); i++) {	    key = Ns_SetKey(conn->outputheaders, i);	    value = Ns_SetValue(conn->outputheaders, i);	    if (key != NULL && value != NULL) {		Ns_DStringAppend(dsPtr, key);		Ns_DStringNAppend(dsPtr, ": ", 2);		Ns_DStringAppend(dsPtr, value);		Ns_DStringNAppend(dsPtr, "\r\n", 2);	    }	}    }    Ns_DStringNAppend(dsPtr, "\r\n", 2);}