Reverse the unnecessary change to the interface of ap_parseHTTPdate()

that was discovered while rebuilding the repository.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83821 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Roy T. Fielding
1999-08-27 22:18:49 +00:00
parent 07fb6d5118
commit b8390cd2d2
4 changed files with 15 additions and 23 deletions

View File

@ -588,11 +588,10 @@ 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;
if (ap_parseHTTPdate(l, &mtime) == 1) {
ap_update_mtime(r, mtime);
ap_set_last_modified(r);
}
time_t mtime = ap_parseHTTPdate(l);
ap_update_mtime(r, mtime);
ap_set_last_modified(r);
}
else if (!strcasecmp(w, "Set-Cookie")) {
ap_table_add(cookie_table, w, l);