added mio_svc_htts_dotxt()

This commit is contained in:
2020-05-26 14:58:55 +00:00
parent 469819f8dc
commit 7b1dd536ed
7 changed files with 86 additions and 182 deletions

View File

@ -937,6 +937,8 @@ if (mio_htre_getcontentlen(req) > 0)
int x;
if (mio_comp_bcstr_limited(qpath, "/thr/", 5, 1) == 0)
x = mio_svc_htts_dothr(htts, csck, req, on_htts_thr_request, MIO_NULL);
else if (mio_comp_bcstr_limited(qpath, "/txt/", 5, 1) == 0)
x = mio_svc_htts_dotxt(htts, csck, req, 200, "text/plain", qpath);
else
x = mio_svc_htts_docgi(htts, csck, req, "", mio_htre_getqpath(req));
if (x <= -1) goto oops;