This flag is H1_MF_RESP. It will be used by the parser during restarts when
it supports requests.
h1m->state = H1_MSG_RQBEFORE;
h1m->next = 0;
h1m->status = 0;
- h1m->flags = 0;
+ h1m->flags = H1_MF_NONE;
h1m->curr_len = 0;
h1m->body_len = 0;
h1m->err_pos = 0;
h1m->state = H1_MSG_RPBEFORE;
h1m->next = 0;
h1m->status = 0;
- h1m->flags = 0;
+ h1m->flags = H1_MF_RESP;
h1m->curr_len = 0;
h1m->body_len = 0;
h1m->err_pos = 0;
#define H1_MF_NONE 0x00000000
#define H1_MF_CLEN 0x00000001 // content-length present
#define H1_MF_CHNK 0x00000002 // chunk present, exclusive with c-l
+#define H1_MF_RESP 0x00000004 // this message is the response message
/* basic HTTP/1 message state for use in parsers */