We don't want to trigger an error while parsing a response coming from
haproxy (it could be an errorfile for example), so let's set this to
-1.
h2s->st = H2_SS_IDLE;
h2s->rxbuf = BUF_NULL;
h1m_init_res(&h2s->h1m);
+ h2s->h1m.err_pos = -1; // don't care about errors on the response path
h2s->by_id.key = h2s->id = id;
h2c->max_id = id;
else if (h1m->status >= 100 && h1m->status < 200) {
/* we'll let the caller check if it has more headers to send */
h1m_init_res(h1m);
+ h1m->err_pos = -1; // don't care about errors on the response path
goto end;
}
else