comparison src/http/modules/ngx_http_range_filter_module.c @ 1195:4ba6df5d5b53

fix multipart ranges trailing
author Igor Sysoev <igor@sysoev.ru>
date Sun, 06 May 2007 18:15:32 +0000
parents db7c468c447d
children 9706372f8916
comparison
equal deleted inserted replaced
1194:8ea6caa62c89 1195:4ba6df5d5b53
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) {