From 1c5f682f4dcbca5afa9dd4a9688bde40efaeb12c Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 30 Oct 2023 11:16:55 +0000 Subject: Revamp (and hopefully fix) resattr management Signed-off-by: Laurent Bercot --- src/libtipidee/tipidee_log_resource.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/libtipidee/tipidee_log_resource.c') diff --git a/src/libtipidee/tipidee_log_resource.c b/src/libtipidee/tipidee_log_resource.c index 75196b0..efdea69 100644 --- a/src/libtipidee/tipidee_log_resource.c +++ b/src/libtipidee/tipidee_log_resource.c @@ -4,6 +4,7 @@ #include +#include #include void tipidee_log_resource (uint32_t v, tipidee_rql const *rql, char const *file, tipidee_resattr const *ra, char const *infopath) @@ -19,8 +20,8 @@ void tipidee_log_resource (uint32_t v, tipidee_rql const *rql, char const *file, a[m++] = " resource " ; a[m++] = file ; a[m++] = " type " ; - a[m++] = ra->iscgi ? ra->isnph ? "nph" : "cgi" : ra->content_type ; - if (ra->iscgi && infopath) + a[m++] = ra->flags & TIPIDEE_RA_FLAG_CGI ? ra->flags & TIPIDEE_RA_FLAG_NPH ? "nph" : "cgi" : ra->content_type ; + if (ra->flags & TIPIDEE_RA_FLAG_CGI && infopath) { a[m++] = " path_info /" ; a[m++] = infopath ; -- cgit v1.3.1