DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16521>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16521

caches MUST treat invalid Expires values as in the past





------- Additional Comments From [EMAIL PROTECTED]  2003-07-03 15:17 -------
(Comments by Kris Verbeeck. Easier to find them if they are in the PR.  - Paul
J. Reder)


PR 16521 states that mod_cache caches and returns responses that have an invalid
Expires header (value is 0 or yesterday).  The attached patch resolves this 
issue.

Some explanation:
- when apr_date_parse_http returns APR_DATE_BAD, the local variable containing
the expires header was reset to NULL;
- the check a bit lower in the code:

    if (exps != NULL && exp == APR_DATE_BAD) {

would always fail because when exp equals APR_DATE_BAD, exps was always NULL.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to