comparison src/http/ngx_http_upstream.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 34fb3a573548
comparison
equal deleted inserted replaced
381:23d1555141d9 382:984bb0b1399b
2815 } else { 2815 } else {
2816 len += 3; 2816 len += 3;
2817 } 2817 }
2818 } 2818 }
2819 2819
2820 p = ngx_palloc(r->pool, len); 2820 p = ngx_pnalloc(r->pool, len);
2821 if (p == NULL) { 2821 if (p == NULL) {
2822 return NGX_ERROR; 2822 return NGX_ERROR;
2823 } 2823 }
2824 2824
2825 v->data = p; 2825 v->data = p;
2876 return NGX_OK; 2876 return NGX_OK;
2877 } 2877 }
2878 2878
2879 len = r->upstream_states->nelts * (3 + 2); 2879 len = r->upstream_states->nelts * (3 + 2);
2880 2880
2881 p = ngx_palloc(r->pool, len); 2881 p = ngx_pnalloc(r->pool, len);
2882 if (p == NULL) { 2882 if (p == NULL) {
2883 return NGX_ERROR; 2883 return NGX_ERROR;
2884 } 2884 }
2885 2885
2886 v->data = p; 2886 v->data = p;
2942 return NGX_OK; 2942 return NGX_OK;
2943 } 2943 }
2944 2944
2945 len = r->upstream_states->nelts * (NGX_TIME_T_LEN + 4 + 2); 2945 len = r->upstream_states->nelts * (NGX_TIME_T_LEN + 4 + 2);
2946 2946
2947 p = ngx_palloc(r->pool, len); 2947 p = ngx_pnalloc(r->pool, len);
2948 if (p == NULL) { 2948 if (p == NULL) {
2949 return NGX_ERROR; 2949 return NGX_ERROR;
2950 } 2950 }
2951 2951
2952 v->data = p; 2952 v->data = p;