This evil little change modifies the interface to ap_parseHTTPdate()

for no good reason.  It'll be backed out real soon.

Submitted by:	pthreads leftovers


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83772 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Roy T. Fielding
1999-08-26 14:53:24 +00:00
parent 1fa9e10844
commit c5a36ee6c2
4 changed files with 23 additions and 15 deletions

View File

@ -588,10 +588,11 @@ API_EXPORT(int) ap_scan_script_header_err_core(request_rec *r, char *buffer,
* pass it on blindly because of restrictions on future values.
*/
else if (!strcasecmp(w, "Last-Modified")) {
time_t mtime = ap_parseHTTPdate(l);
ap_update_mtime(r, mtime);
ap_set_last_modified(r);
time_t mtime;
if (ap_parseHTTPdate(l, &mtime) == 1) {
ap_update_mtime(r, mtime);
ap_set_last_modified(r);
}
}
else if (!strcasecmp(w, "Set-Cookie")) {
ap_table_add(cookie_table, w, l);