comparison src/http/modules/ngx_http_range_filter_module.c @ 300:cba14c1e2a4b NGINX_0_5_20

nginx 0.5.20 *) Feature: the "sendfile_max_chunk" directive. *) Feature: the "$http_...", "$sent_http_...", and "$upstream_http_..." variables may be changed using the "set" directive. *) Bugfix: a segmentation fault might occur in worker process if the SSI command 'if expr="$var = /"' was used. *) Bugfix: trailing boundary of multipart range response was transferred incorrectly. Thanks to Evan Miller. *) Bugfix: nginx did not work on Solaris/sparc64 if it was built by Sun Studio. Thanks to Andrei Nigmatulin. *) Bugfix: the ngx_http_perl_module could not built by Solaris make. Thanks to Andrei Nigmatulin.
author Igor Sysoev <http://sysoev.ru>
date Mon, 07 May 2007 00:00:00 +0400
parents 5bef04fc3fd5
children c60beecc6ab5
comparison
equal deleted inserted replaced
299:7d0d14dc5fd7 300:cba14c1e2a4b
634 + sizeof("--" CRLF) - 1); 634 + sizeof("--" CRLF) - 1);
635 if (b->pos == NULL) { 635 if (b->pos == NULL) {
636 return NGX_ERROR; 636 return NGX_ERROR;
637 } 637 }
638 638
639 b->last = ngx_cpymem(b->pos, ctx->boundary_header.data, 4 + 10); 639 b->last = ngx_cpymem(b->pos, ctx->boundary_header.data,
640 sizeof(CRLF "--") - 1 + NGX_ATOMIC_T_LEN);
640 *b->last++ = '-'; *b->last++ = '-'; 641 *b->last++ = '-'; *b->last++ = '-';
641 *b->last++ = CR; *b->last++ = LF; 642 *b->last++ = CR; *b->last++ = LF;
642 643
643 hcl = ngx_alloc_chain_link(r->pool); 644 hcl = ngx_alloc_chain_link(r->pool);
644 if (hcl == NULL) { 645 if (hcl == NULL) {