header file. The only time that the C-L should be zero is if there is
no body. Zero is a valid content-length, but the only time that we ever
really send it is on a HEAD request right now, and that is incorrect.
The HEAD response should have the actual content's length.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86953
13f79535-47bb-0310-9956-
ffa450edef68
apr_table_addn(r->headers_out, "Expires", date);
}
+ if (!strcmp(apr_table_get(r->headers_out, "Content-Length"), "0")) {
+ apr_table_unset(r->headers_out, "Content-Length");
+ }
+
apr_table_do((int (*) (void *, const char *, const char *)) compute_header_len,
(void *) &len, r->headers_out, NULL);