diff options
Diffstat (limited to 'src/libtipidee/tipidee_log_resource.c')
-rw-r--r-- | src/libtipidee/tipidee_log_resource.c | 5 |
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 ; |