X-Git-Url: http://dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=src%2Fcallfcgi.c;h=d36e98c7e024c145488467d3ce7838cd56dd8a36;hp=a394a42eca4c3fbefcd7dac96db6f8f9f7fb8971;hb=381f9919d2b5a84bb72b1dec33623c5e6bbf1f6e;hpb=5c2040da62c208e67836755465a4300683a06a49 diff --git a/src/callfcgi.c b/src/callfcgi.c index a394a42..d36e98c 100644 --- a/src/callfcgi.c +++ b/src/callfcgi.c @@ -465,6 +465,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)