--- iis/jk_isapi_plugin.c (revision 1086410) +++ iis/jk_isapi_plugin.c (working copy) @@ -3216,18 +3216,21 @@ sizeof(CONTENT_LENGTH) - 1)) { if (need_content_length_header) { need_content_length_header = FALSE; - /* If the content-length is unknown - * or larger then 4Gb do not send it. - */ - if (unknown_content_length || s->is_chunked) { - if (JK_IS_DEBUG_LEVEL(logger)) { - jk_log(logger, JK_LOG_DEBUG, - "Header Content-Length is %s", - s->is_chunked ? "chunked" : "unknown"); - } - real_header = JK_FALSE; + } + + /* If the content-length is unknown + * or larger then 4Gb do not send it. + */ + if (unknown_content_length || s->is_chunked) { + if (JK_IS_DEBUG_LEVEL(logger)) { + jk_log(logger, JK_LOG_DEBUG, + "Header Content-Length is %s", + s->is_chunked ? "chunked" : "unknown"); } + cnt--; + real_header = JK_FALSE; } + if (real_header) s->headers_names[i] = tmp; }