X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=src%2Fcallscgi.c;h=7e5f51cd13521d2f42a34bfe369a5af2143ce980;hp=86abb5b4a27a5e1d4e53f2834259ea40d900def6;hb=9230295ca8434b21ba5d2b2c1d7554d61eab1a71;hpb=36ea06a63bb12fed3406b3e7bbbcd87633877045 diff --git a/src/callscgi.c b/src/callscgi.c index 86abb5b..7e5f51c 100644 --- a/src/callscgi.c +++ b/src/callscgi.c @@ -430,7 +430,7 @@ 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-Server-Protocol")) != NULL) && !strcmp(h, "https")) + if(((h = getheader(req, "X-Ash-Protocol")) != NULL) && !strcmp(h, "https")) bufaddenv(dst, "HTTPS", "on"); if((h = getheader(req, "X-Ash-Address")) != NULL) bufaddenv(dst, "REMOTE_ADDR", "%s", h);