comparison src/http/modules/ngx_http_index_module.c @ 1600:1d659775325a

fix mime type for absolute index
author Igor Sysoev <igor@sysoev.ru>
date Tue, 23 Oct 2007 14:10:38 +0000
parents 223e92651ca5
children cba2bb1796e4
comparison
equal deleted inserted replaced
1599:51b401063046 1600:1d659775325a
501 if (n == 0) { 501 if (n == 0) {
502 if (ilcf->max_index_len < index->name.len) { 502 if (ilcf->max_index_len < index->name.len) {
503 ilcf->max_index_len = index->name.len; 503 ilcf->max_index_len = index->name.len;
504 } 504 }
505 505
506 if (index->name.data[0] == '/') {
507 continue;
508 }
509
506 /* include the terminating '\0' to the length to use ngx_copy() */ 510 /* include the terminating '\0' to the length to use ngx_copy() */
507 index->name.len++; 511 index->name.len++;
508 512
509 continue; 513 continue;
510 } 514 }