+Changes with Apache 2.0.42
+
+ *) Fixed mod_disk_cache's generation of 304s
+ [Kris Verbeeck <Kris.Verbeeck@ubizen.com>]
+
Changes with Apache 2.0.41
*) Add support for using fnmatch patterns in the final path
r->status = atoi(urlbuff); /* Save status line into request rec */
- rv = apr_file_gets(&urlbuff[0], urllen, dobj->hfd); /* Read status line */
+ /* Read and ignore the status line (This request might result in a
+ * 304, so we don't necessarily want to retransmit a 200 from the cache.)
+ */
+ rv = apr_file_gets(&urlbuff[0], urllen, dobj->hfd);
if (rv != APR_SUCCESS) {
/* XXX log message */
return rv;
}
- if ((temp = strchr(&urlbuff[0], '\n')) != NULL) /* trim off new line character */
- *temp = '\0'; /* overlay it with the null terminator */
-
- r->status_line = apr_pstrdup(r->pool, urlbuff); /* Save status line into request rec */
-
h->req_hdrs = apr_table_make(r->pool, 20);
/*