mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-19 21:02:01 +03:00
restore host header to make %eyre happy
This commit is contained in:
parent
6a9e13eb79
commit
f62a117741
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user