Mercurial > hg > nginx-vendor-1-0
comparison src/core/ngx_conf_file.c @ 382:984bb0b1399b NGINX_0_7_3
nginx 0.7.3
*) Change: the "rss" extension MIME type has been changed to
"application/rss+xml".
*) Change: now the "gzip_vary" directive turned on issues a
"Vary: Accept-Encoding" header line for uncompressed responses too.
*) Feature: now the "rewrite" directive does a redirect automatically
if the "https://" protocol is used.
*) Bugfix: the "proxy_pass" directive did not work with the HTTPS
protocol; the bug had appeared in 0.6.9.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 23 Jun 2008 00:00:00 +0400 |
parents | 6639b93e81b2 |
children | 12defd37f578 |
comparison
equal
deleted
inserted
replaced
381:23d1555141d9 | 382:984bb0b1399b |
---|---|
572 word = ngx_array_push(cf->args); | 572 word = ngx_array_push(cf->args); |
573 if (word == NULL) { | 573 if (word == NULL) { |
574 return NGX_ERROR; | 574 return NGX_ERROR; |
575 } | 575 } |
576 | 576 |
577 word->data = ngx_palloc(cf->pool, b->pos - start + 1); | 577 word->data = ngx_pnalloc(cf->pool, b->pos - start + 1); |
578 if (word->data == NULL) { | 578 if (word->data == NULL) { |
579 return NGX_ERROR; | 579 return NGX_ERROR; |
580 } | 580 } |
581 | 581 |
582 for (dst = word->data, src = start, len = 0; | 582 for (dst = word->data, src = start, len = 0; |
724 len = cycle->root.len; | 724 len = cycle->root.len; |
725 prefix = cycle->root.data; | 725 prefix = cycle->root.data; |
726 } | 726 } |
727 | 727 |
728 name->len = len + old.len; | 728 name->len = len + old.len; |
729 name->data = ngx_palloc(cycle->pool, name->len + 1); | 729 name->data = ngx_pnalloc(cycle->pool, name->len + 1); |
730 if (name->data == NULL) { | 730 if (name->data == NULL) { |
731 return NGX_ERROR; | 731 return NGX_ERROR; |
732 } | 732 } |
733 | 733 |
734 p = ngx_cpymem(name->data, prefix, len); | 734 p = ngx_cpymem(name->data, prefix, len); |