352 7, |
352 7, |
353 rq->srvhdrs); |
353 rq->srvhdrs); |
354 } |
354 } |
355 |
355 |
356 // set stream property |
356 // set stream property |
357 HttpStream *stream = (HttpStream*)sn->csd; // TODO: make this typesafe |
357 httpstream_enable_chunked_write(sn->csd); |
358 stream->chunked_enc = 1; |
|
359 rq->rq_attr.chunked = 1; |
358 rq->rq_attr.chunked = 1; |
360 } |
359 } |
361 |
360 |
362 // add header from rq->srvhdrs |
361 // add header from rq->srvhdrs |
363 add_http_response_header(&writer->buf, rq); |
362 add_http_response_header(&writer->buf, rq); |