diff --git a/vere/http.c b/vere/http.c index 6ff2ae9e1..54cabba8b 100644 --- a/vere/http.c +++ b/vere/http.c @@ -212,6 +212,12 @@ _http_req_to_httq(h2o_req_t* rec_u) u3_noun url = _http_vec_to_atom(rec_u->path_normalized); u3_noun hed = _http_heds_to_noun(&rec_u->headers); + + // restore host header + hed = u3nc(u3nc(u3i_string("host"), + _http_vec_to_atom(rec_u->authority)), + hed); + u3_noun bod = _http_vec_to_octs(rec_u->entity); return u3nq(med, url, hed, bod);