Mercurial > hg > nginx-ranges
comparison src/http/ngx_http_request.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 | 820f6378fc00 |
children | 12defd37f578 |
comparison
equal
deleted
inserted
replaced
381:23d1555141d9 | 382:984bb0b1399b |
---|---|
652 } | 652 } |
653 | 653 |
654 | 654 |
655 if (r->complex_uri || r->quoted_uri) { | 655 if (r->complex_uri || r->quoted_uri) { |
656 | 656 |
657 r->uri.data = ngx_palloc(r->pool, r->uri.len + 1); | 657 r->uri.data = ngx_pnalloc(r->pool, r->uri.len + 1); |
658 if (r->uri.data == NULL) { | 658 if (r->uri.data == NULL) { |
659 ngx_http_close_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); | 659 ngx_http_close_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); |
660 return; | 660 return; |
661 } | 661 } |
662 | 662 |
912 | 912 |
913 h->value.len = r->header_end - r->header_start; | 913 h->value.len = r->header_end - r->header_start; |
914 h->value.data = r->header_start; | 914 h->value.data = r->header_start; |
915 h->value.data[h->value.len] = '\0'; | 915 h->value.data[h->value.len] = '\0'; |
916 | 916 |
917 h->lowcase_key = ngx_palloc(r->pool, h->key.len); | 917 h->lowcase_key = ngx_pnalloc(r->pool, h->key.len); |
918 if (h->lowcase_key == NULL) { | 918 if (h->lowcase_key == NULL) { |
919 ngx_http_close_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); | 919 ngx_http_close_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); |
920 return; | 920 return; |
921 } | 921 } |
922 | 922 |
1560 | 1560 |
1561 if (len <= 32) { | 1561 if (len <= 32) { |
1562 server = buf; | 1562 server = buf; |
1563 | 1563 |
1564 } else { | 1564 } else { |
1565 server = ngx_palloc(r->pool, len); | 1565 server = ngx_pnalloc(r->pool, len); |
1566 if (server == NULL) { | 1566 if (server == NULL) { |
1567 return NGX_ERROR; | 1567 return NGX_ERROR; |
1568 } | 1568 } |
1569 } | 1569 } |
1570 | 1570 |