comparison src/http/modules/ngx_http_headers_filter.c @ 415:3c56e834be46

nginx-0.0.10-2004-09-05-23:54:02 import
author Igor Sysoev <igor@sysoev.ru>
date Sun, 05 Sep 2004 19:54:02 +0000
parents 537de4dca8ca
children b9bd635011de
comparison
equal deleted inserted replaced
414:388a842cbbe1 415:3c56e834be46
73 73
74 conf = ngx_http_get_module_loc_conf(r, ngx_http_headers_filter_module); 74 conf = ngx_http_get_module_loc_conf(r, ngx_http_headers_filter_module);
75 75
76 if (conf->expires != NGX_HTTP_EXPIRES_OFF) { 76 if (conf->expires != NGX_HTTP_EXPIRES_OFF) {
77 77
78 expires = ngx_http_add_header(&r->headers_out, ngx_http_headers_out); 78 if (!(expires = ngx_push_list(&r->headers_out.headers))) {
79 if (expires == NULL) {
80 return NGX_ERROR; 79 return NGX_ERROR;
81 } 80 }
82 81
83 r->headers_out.expires = expires; 82 r->headers_out.expires = expires;
84 83
85 cc = ngx_http_add_header(&r->headers_out, ngx_http_headers_out); 84 if (!(cc = ngx_push_list(&r->headers_out.headers))) {
86 if (cc == NULL) {
87 return NGX_ERROR; 85 return NGX_ERROR;
88 } 86 }
89 87
90 r->headers_out.cache_control = cc; 88 r->headers_out.cache_control = cc;
91 89