aboutsummaryrefslogtreecommitdiffstats
path: root/src/tipideed/cgi.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2026-06-26 01:26:17 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2026-06-26 01:26:17 +0000
commit45808dbc6dc1b90fa512add692252bc15760a214 (patch)
treedbba94778b4ba346fdcee373ce163e2f4dd43d79 /src/tipideed/cgi.c
parent7c5d186df1f7f00567660354905435cedffc3e20 (diff)
downloadtipidee-45808dbc6dc1b90fa512add692252bc15760a214.tar.gz
Add cgi_pass_authorization
Diffstat (limited to 'src/tipideed/cgi.c')
-rw-r--r--src/tipideed/cgi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tipideed/cgi.c b/src/tipideed/cgi.c
index 3e15b69..ca66ec5 100644
--- a/src/tipideed/cgi.c
+++ b/src/tipideed/cgi.c
@@ -97,6 +97,7 @@ static inline void modify_env (tipidee_rql const *rql, char const *docroot, tipi
addenvb(rql, docroot, "AUTH_TYPE", val, n) ;
got |= 1 ;
}
+ if (g.flagcgipassauth) addenvb(rql, docroot, "HTTP_AUTHORIZATION", val, len) ;
}
else if (!strcasecmp(key, "Content-Type")) { addenv(rql, docroot, "CONTENT_TYPE", val) ; got |= 2 ; }
else if (!strcasecmp(key, "Content-Length") || !strcasecmp(key, "Connection")) ;