diff --git a/src/hq_interop.c b/src/hq_interop.c index 3ded46266..74240a1f7 100644 --- a/src/hq_interop.c +++ b/src/hq_interop.c @@ -115,6 +115,7 @@ static ssize_t hq_interop_rcv_buf_res(struct qcs *qcs, struct buffer *b, int fin sl = htx_add_stline(htx, HTX_BLK_RES_SL, flags, ist("HTTP/1.0"), ist("200"), ist("")); BUG_ON(!sl); + sl->info.res.status = 200; if (fin && !to_copy) sl->flags |= HTX_SL_F_BODYLESS; htx_add_endof(htx, HTX_BLK_EOH); @@ -200,7 +201,7 @@ static size_t hq_interop_snd_buf(struct qcs *qcs, struct buffer *buf, /* Only GET supported for HTTP/0.9. */ b_putist(res, ist("GET ")); b_putist(res, htx_sl_req_uri(sl)); - b_putist(res, ist(" HTTP/0.9\r\n")); + b_putist(res, ist("\r\n")); htx_remove_blk(htx, blk); total += fsize; break;