From 9e135dbbd722b40486ed7f8ecf41ef6a2dee2496 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Thu, 22 Dec 2022 14:21:15 +0900 Subject: [PATCH] set HIO_SVC_HTTS_FILE_LIST_DIR to hio_svc-htts_dofile() in webs.c --- bin/webs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/webs.c b/bin/webs.c index 782b98a..f039a54 100644 --- a/bin/webs.c +++ b/bin/webs.c @@ -84,7 +84,8 @@ static int process_http_request (hio_svc_htts_t* htts, hio_dev_sck_t* csck, hio_ else // if (mth == HIO_HTTP_GET || mth == HIO_HTTP_POST) { /* TODO: proper mime-type */ - if (hio_svc_htts_dofile(htts, csck, req, ext->docroot, qpath, HIO_NULL, 0, HIO_NULL) <= -1) goto oops; + /* TODO: make HIO_SVC_HTTS_FILE_DIR a cli option */ + if (hio_svc_htts_dofile(htts, csck, req, ext->docroot, qpath, HIO_NULL, HIO_SVC_HTTS_FILE_LIST_DIR, HIO_NULL) <= -1) goto oops; } #if 0 else