add %chis for local-request backwards compatibility

This commit is contained in:
Anton Dyudin 2016-03-31 10:36:58 -07:00
parent 37223edb4b
commit 3d05538f75
2 changed files with 9 additions and 5 deletions

View File

@ -180,6 +180,7 @@
# define c3__chaf c3_s4('c','h','a','f')
# define c3__chan c3_s4('c','h','a','n')
# define c3__chew c3_s4('c','h','e','w')
# define c3__chis c3_s4('c','h','i','s')
# define c3__chob c3_s4('c','h','o','b')
# define c3__chug c3_s4('c','h','u','g')
# define c3__claf c3_s4('c','l','a','f')

View File

@ -891,13 +891,16 @@ _http_request(u3_hreq* req_u)
u3_noun pox = _http_pox_to_noun(req_u->hon_u->htp_u->sev_l,
req_u->hon_u->coq_l,
req_u->seq_l);
u3_noun typ =
_(req_u->hon_u->htp_u->lop) ?
c3__chis :
c3__this;
u3v_plan(pox,
u3nq(c3__this,
req_u->hon_u->htp_u->lop,
u3nq(typ,
req_u->hon_u->htp_u->sec,
u3nc(u3nc(c3y, u3i_words(1, &req_u->ipf_w)),
req)));
u3nc(c3y, u3i_words(1, &req_u->ipf_w)),
req));
}
}