Mercurial > hg > nginx-vendor-1-0
comparison src/http/modules/ngx_http_autoindex_module.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 | 05693816539c |
children | 0b6053502c55 |
comparison
equal
deleted
inserted
replaced
381:23d1555141d9 | 382:984bb0b1399b |
---|---|
280 | 280 |
281 if (path.len + 1 + len + 1 > allocated) { | 281 if (path.len + 1 + len + 1 > allocated) { |
282 allocated = path.len + 1 + len + 1 | 282 allocated = path.len + 1 + len + 1 |
283 + NGX_HTTP_AUTOINDEX_PREALLOCATE; | 283 + NGX_HTTP_AUTOINDEX_PREALLOCATE; |
284 | 284 |
285 filename = ngx_palloc(pool, allocated); | 285 filename = ngx_pnalloc(pool, allocated); |
286 if (filename == NULL) { | 286 if (filename == NULL) { |
287 return ngx_http_autoindex_error(r, &dir, &path); | 287 return ngx_http_autoindex_error(r, &dir, &path); |
288 } | 288 } |
289 | 289 |
290 last = ngx_cpystrn(filename, path.data, path.len + 1); | 290 last = ngx_cpystrn(filename, path.data, path.len + 1); |
316 return ngx_http_autoindex_error(r, &dir, &path); | 316 return ngx_http_autoindex_error(r, &dir, &path); |
317 } | 317 } |
318 | 318 |
319 entry->name.len = len; | 319 entry->name.len = len; |
320 | 320 |
321 entry->name.data = ngx_palloc(pool, len + 1); | 321 entry->name.data = ngx_pnalloc(pool, len + 1); |
322 if (entry->name.data == NULL) { | 322 if (entry->name.data == NULL) { |
323 return ngx_http_autoindex_error(r, &dir, &path); | 323 return ngx_http_autoindex_error(r, &dir, &path); |
324 } | 324 } |
325 | 325 |
326 ngx_cpystrn(entry->name.data, ngx_de_name(&dir), len + 1); | 326 ngx_cpystrn(entry->name.data, ngx_de_name(&dir), len + 1); |