comparison src/http/modules/ngx_http_chunked_filter.c @ 292:a472bfb778b3

nginx-0.0.3-2004-03-17-00:26:01 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 16 Mar 2004 21:26:01 +0000
parents 87e73f067470
children ca9a7f8c86da
comparison
equal deleted inserted replaced
291:117ccc7c4055 292:a472bfb778b3
99 ngx_test_null(h, ngx_calloc_hunk(r->pool), NGX_ERROR); 99 ngx_test_null(h, ngx_calloc_hunk(r->pool), NGX_ERROR);
100 100
101 if (cl->hunk->type & NGX_HUNK_LAST) { 101 if (cl->hunk->type & NGX_HUNK_LAST) {
102 cl->hunk->type &= ~NGX_HUNK_LAST; 102 cl->hunk->type &= ~NGX_HUNK_LAST;
103 h->type = NGX_HUNK_IN_MEMORY|NGX_HUNK_MEMORY|NGX_HUNK_LAST; 103 h->type = NGX_HUNK_IN_MEMORY|NGX_HUNK_MEMORY|NGX_HUNK_LAST;
104 h->pos = CRLF "0" CRLF CRLF; 104 h->pos = (u_char *) CRLF "0" CRLF CRLF;
105 h->last = h->pos + 7; 105 h->last = h->pos + 7;
106 106
107 } else { 107 } else {
108 h->type = NGX_HUNK_IN_MEMORY|NGX_HUNK_MEMORY; 108 h->type = NGX_HUNK_IN_MEMORY|NGX_HUNK_MEMORY;
109 h->pos = CRLF; 109 h->pos = (u_char *) CRLF;
110 h->last = h->pos + 2; 110 h->last = h->pos + 2;
111 } 111 }
112 112
113 ngx_alloc_link_and_set_hunk(tl, h, r->pool, NGX_ERROR); 113 ngx_alloc_link_and_set_hunk(tl, h, r->pool, NGX_ERROR);
114 *ll = tl; 114 *ll = tl;