src/server/daemon/protocol.c

changeset 513
9a49c245a49c
parent 433
39fe86ae4db0
equal deleted inserted replaced
511:a5a142fea2ae 513:9a49c245a49c
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);

mercurial