comparison src/http/modules/ngx_http_headers_filter_module.c @ 348:e10168d6e371 NGINX_0_6_18

nginx 0.6.18 *) Change: now the ngx_http_userid_module adds start time microseconds to the cookie field contains a pid value. *) Change: now the full request line instead of URI only is written to error_log. *) Feature: variables support in the "proxy_pass" directive. *) Feature: the "resolver" and "resolver_timeout" directives. *) Feature: now the directive "add_header last-modified ''" deletes a "Last-Modified" response header line. *) Bugfix: the "limit_rate" directive did not allow to use full throughput, even if limit value was very high.
author Igor Sysoev <http://sysoev.ru>
date Tue, 27 Nov 2007 00:00:00 +0300
parents 9fc4ab6673f9
children d13234035cad
comparison
equal deleted inserted replaced
347:d53199b68e17 348:e10168d6e371
367 367
368 } else { 368 } else {
369 old = NULL; 369 old = NULL;
370 } 370 }
371 371
372 r->headers_out.last_modified_time = -1;
373
372 if (old == NULL || *old == NULL) { 374 if (old == NULL || *old == NULL) {
375
376 if (value->len == 0) {
377 return NGX_OK;
378 }
379
373 h = ngx_list_push(&r->headers_out.headers); 380 h = ngx_list_push(&r->headers_out.headers);
374 if (h == NULL) { 381 if (h == NULL) {
375 return NGX_ERROR; 382 return NGX_ERROR;
376 } 383 }
377 384
378 } else { 385 } else {
379 h = *old; 386 h = *old;
387
388 if (value->len == 0) {
389 h->hash = 0;
390 return NGX_OK;
391 }
380 } 392 }
381 393
382 h->hash = hv->value.hash; 394 h->hash = hv->value.hash;
383 h->key = hv->value.key; 395 h->key = hv->value.key;
384 h->value = *value; 396 h->value = *value;
385
386 r->headers_out.last_modified_time = -1;
387 397
388 return NGX_OK; 398 return NGX_OK;
389 } 399 }
390 400
391 401