struct stream *s = si_strm(si);
struct channel *req = &s->req;
struct channel *res = &s->res;
- struct http_msg *msg = &s->txn->rsp;
struct htx_blk *blk = NULL;
struct htx *htx;
struct htx_sl *sl = NULL;
case HTTPCLIENT_S_RES_STLINE:
/* copy the start line in the hc structure,then remove the htx block */
- if (!co_data(res) || (msg->msg_state < HTTP_MSG_DATA))
+ if (!co_data(res))
goto more;
htx = htxbuf(&res->buf);
if (!htx)
{
struct http_hdr hdrs[global.tune.max_http_hdr];
- if (!co_data(res) || (msg->msg_state < HTTP_MSG_DATA))
+ if (!co_data(res))
goto more;
htx = htxbuf(&res->buf);
if (!htx)
* The IO handler removes the htx blocks in the response buffer and
* push them in the hc->res.buf buffer in a raw format.
*/
- if (!co_data(res) || (msg->msg_state < HTTP_MSG_DATA))
+ if (!co_data(res))
goto more;
htx = htxbuf(&res->buf);