comparison src/http/modules/ngx_http_range_filter_module.c @ 2882:896db5a09bd2

reset content_type hash value, this fixes a bug when XSLT responses could not be processed by SSI, charset, and gzip filters
author Igor Sysoev <igor@sysoev.ru>
date Mon, 25 May 2009 09:06:29 +0000
parents 3a8a53c0c42f
children 616da2ea901f
comparison
equal deleted inserted replaced
2881:13b63d682228 2882:896db5a09bd2
454 454
455 if (r->headers_out.content_type.data == NULL) { 455 if (r->headers_out.content_type.data == NULL) {
456 return NGX_ERROR; 456 return NGX_ERROR;
457 } 457 }
458 458
459 r->headers_out.content_type_lowcase = NULL;
460
459 /* "Content-Type: multipart/byteranges; boundary=0123456789" */ 461 /* "Content-Type: multipart/byteranges; boundary=0123456789" */
460 462
461 r->headers_out.content_type.len = 463 r->headers_out.content_type.len =
462 ngx_sprintf(r->headers_out.content_type.data, 464 ngx_sprintf(r->headers_out.content_type.data,
463 "multipart/byteranges; boundary=%0muA", 465 "multipart/byteranges; boundary=%0muA",
464 boundary) 466 boundary)
465 - r->headers_out.content_type.data; 467 - r->headers_out.content_type.data;
466 468
469 r->headers_out.content_type_len = r->headers_out.content_type.len;
467 470
468 /* the size of the last boundary CRLF "--0123456789--" CRLF */ 471 /* the size of the last boundary CRLF "--0123456789--" CRLF */
469 472
470 len = sizeof(CRLF "--") - 1 + NGX_ATOMIC_T_LEN + sizeof("--" CRLF) - 1; 473 len = sizeof(CRLF "--") - 1 + NGX_ATOMIC_T_LEN + sizeof("--" CRLF) - 1;
471 474