Commit b610e9a0 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland Committed by Nils Goroll

Use rfc2616_time() to parse Age headers

One time element function to rule and parse them all.
parent aaaf7b38
......@@ -117,12 +117,7 @@ RFC2616_Ttl(struct busyobj *bo, vtim_real now, vtim_real *t_origin,
*/
if (http_GetHdr(hp, H_Age, &p)) {
/*
* We deliberately run with partial results, rather than
* reject the Age: header outright. This will be future
* compatible with fractional seconds.
*/
age = strtoul(p, NULL, 10);
age = rfc2616_time(p);
*t_origin -= age;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment