comparison src/http/modules/ngx_http_range_filter_module.c @ 494:499474178a11 NGINX_0_7_59

nginx 0.7.59 *) Feature: the "proxy_cache_methods" and "fastcgi_cache_methods" directives. *) Bugfix: socket leak; the bug had appeared in 0.7.25. Thanks to Maxim Dounin. *) Bugfix: a segmentation fault occurred in worker process, if a request had no body and the $request_body variable was used; the bug had appeared in 0.7.58. *) Bugfix: the SSL modules might not built on Solaris and Linux; the bug had appeared in 0.7.58. *) Bugfix: ngx_http_xslt_filter_module responses were not handled by SSI, charset, and gzip filters. *) Bugfix: a "charset" directive did not set a charset to ngx_http_gzip_static_module responses.
author Igor Sysoev <http://sysoev.ru>
date Mon, 25 May 2009 00:00:00 +0400
parents c8cfb6c462ef
children 8246d8a2c2be
comparison
equal deleted inserted replaced
493:d13d7ebf1370 494:499474178a11
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