Mercurial > hg > nginx
comparison src/http/modules/ngx_http_headers_filter_module.c @ 2164:b4ffe603fa86
check daily time range
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 11 Aug 2008 17:50:37 +0000 |
parents | 3e8a4d057b77 |
children | 008777fa59e0 |
comparison
equal
deleted
inserted
replaced
2163:3e8a4d057b77 | 2164:b4ffe603fa86 |
---|---|
551 | 551 |
552 if (hcf->expires_time == NGX_ERROR) { | 552 if (hcf->expires_time == NGX_ERROR) { |
553 return "invalid value"; | 553 return "invalid value"; |
554 } | 554 } |
555 | 555 |
556 if (hcf->expires == NGX_HTTP_EXPIRES_DAILY | |
557 && hcf->expires_time > 24 * 60 * 60) | |
558 { | |
559 return "daily time value must be less than 24 hours"; | |
560 } | |
561 | |
556 if (hcf->expires_time == NGX_PARSE_LARGE_TIME) { | 562 if (hcf->expires_time == NGX_PARSE_LARGE_TIME) { |
557 return "value must be less than 68 years"; | 563 return "value must be less than 68 years"; |
558 } | 564 } |
559 | 565 |
560 if (minus) { | 566 if (minus) { |