comparison src/http/ngx_http.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 bc21d9cd9c54
children 34fb3a573548
comparison
equal deleted inserted replaced
381:23d1555141d9 382:984bb0b1399b
1022 q = ngx_queue_middle(locations); 1022 q = ngx_queue_middle(locations);
1023 1023
1024 lq = (ngx_http_location_queue_t *) q; 1024 lq = (ngx_http_location_queue_t *) q;
1025 len = lq->name->len - prefix; 1025 len = lq->name->len - prefix;
1026 1026
1027 node = ngx_palloc_aligned(cf->pool, 1027 node = ngx_palloc(cf->pool,
1028 offsetof(ngx_http_location_tree_node_t, name) + len); 1028 offsetof(ngx_http_location_tree_node_t, name) + len);
1029 if (node == NULL) { 1029 if (node == NULL) {
1030 return NULL; 1030 return NULL;
1031 } 1031 }
1032 1032
1033 node->left = NULL; 1033 node->left = NULL;
1613 return NGX_ERROR; 1613 return NGX_ERROR;
1614 } 1614 }
1615 1615
1616 hip->port = in_port->port; 1616 hip->port = in_port->port;
1617 1617
1618 hip->port_text.data = ngx_palloc(cf->pool, 7); 1618 hip->port_text.data = ngx_pnalloc(cf->pool, 7);
1619 if (hip->port_text.data == NULL) { 1619 if (hip->port_text.data == NULL) {
1620 return NGX_ERROR; 1620 return NGX_ERROR;
1621 } 1621 }
1622 1622
1623 ls->servers = hip; 1623 ls->servers = hip;