added some code for integrating TRE into awk
This commit is contained in:
@ -536,6 +536,21 @@ static QSE_INLINE int task_main_getdir (
|
||||
);
|
||||
if (x)
|
||||
{
|
||||
#if 0
|
||||
if (httpd->opt.trait & QSE_HTTPD_LOGACC)
|
||||
{
|
||||
qse_httpd_reqsum_t reqsum;
|
||||
|
||||
acc.remote = remote;
|
||||
acc.qpath = qpath;
|
||||
acc.status = 200;
|
||||
acc.version = ...;
|
||||
acc.method = ...;
|
||||
|
||||
httpd->opt.rcb.logacc (httpd, &reqsum);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* arrange to send the actual directory contents */
|
||||
x = entask_directory_segment (httpd, client, x, dir->handle, dir);
|
||||
if (x) return 0;
|
||||
|
@ -605,7 +605,9 @@ qse_httpd_task_t* qse_httpd_entaskfile (
|
||||
|
||||
task.init = task_init_getfile;
|
||||
task.main = task_main_getfile;
|
||||
break;
|
||||
|
||||
task.ctx = &data;
|
||||
return qse_httpd_entask (httpd, client, pred, &task, xtnsize);
|
||||
|
||||
case QSE_HTTP_PUT:
|
||||
/* note that no partial update is supported for PUT */
|
||||
@ -614,7 +616,8 @@ qse_httpd_task_t* qse_httpd_entaskfile (
|
||||
task.init = task_init_putfile;
|
||||
task.main = task_main_putfile;
|
||||
task.fini = task_fini_putfile;
|
||||
break;
|
||||
task.ctx = &data;
|
||||
return qse_httpd_entask (httpd, client, pred, &task, xtnsize);
|
||||
|
||||
case QSE_HTTP_DELETE:
|
||||
{
|
||||
@ -637,7 +640,5 @@ qse_httpd_task_t* qse_httpd_entaskfile (
|
||||
}
|
||||
|
||||
|
||||
task.ctx = &data;
|
||||
return qse_httpd_entask (httpd, client, pred, &task, xtnsize);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user