X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=src%2Fcallscgi.c;h=ba598fdf2af136100030d19764d7806b85e32e90;hp=af84a9aaccb1aace1f5c1cb0b43f1481c18676e2;hb=381f9919d2b5a84bb72b1dec33623c5e6bbf1f6e;hpb=5c2040da62c208e67836755465a4300683a06a49 diff --git a/src/callscgi.c b/src/callscgi.c index af84a9a..ba598fd 100644 --- a/src/callscgi.c +++ b/src/callscgi.c @@ -428,6 +428,8 @@ static void mkcgienv(struct hthead *req, struct charbuf *dst) bufaddenv(dst, "SERVER_NAME", "%s", h); if((h = getheader(req, "X-Ash-Server-Port")) != NULL) bufaddenv(dst, "SERVER_PORT", "%s", h); + if((h = getheader(req, "X-Ash-Remote-User")) != NULL) + bufaddenv(dst, "REMOTE_USER", "%s", h); if(((h = getheader(req, "X-Ash-Protocol")) != NULL) && !strcmp(h, "https")) bufaddenv(dst, "HTTPS", "on"); if((h = getheader(req, "X-Ash-Address")) != NULL)