summaryrefslogtreecommitdiff
path: root/src/libtipidee/tipidee_log_resource.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-10-30 11:16:55 +0000
committerLaurent Bercot <ska@appnovation.com>2023-10-30 11:16:55 +0000
commit1c5f682f4dcbca5afa9dd4a9688bde40efaeb12c (patch)
tree9c5ac88f1c430686d45de44ee36f29fe26be42b1 /src/libtipidee/tipidee_log_resource.c
parentad88c5ec68b1cfd47017face422132ab8c7b2874 (diff)
downloadtipidee-1c5f682f4dcbca5afa9dd4a9688bde40efaeb12c.tar.xz
Revamp (and hopefully fix) resattr management
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libtipidee/tipidee_log_resource.c')
-rw-r--r--src/libtipidee/tipidee_log_resource.c5
1 files changed, 3 insertions, 2 deletions
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 <skalibs/strerr.h>
+#include <tipidee/resattr.h>
#include <tipidee/log.h>
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 ;