Changeset 1684

Show
Ignore:
Timestamp:
02/21/2007 07:30:20 PM (1 year ago)
Author:
darix
Message:

- add HTTPS=on to the environment of cgi scripts (#861)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/lighttpd-1.4.x/src/mod_cgi.c

    r1371 r1684  
    843843                } 
    844844 
     845#ifdef USE_OPENSSL 
     846        if (srv_sock->is_ssl) { 
     847                fcgi_env_add(p->fcgi_env, CONST_STR_LEN("HTTPS"), CONST_STR_LEN("on")); 
     848        } 
     849#endif 
     850 
    845851                /* request.content_length < SSIZE_MAX, see request.c */ 
    846852                ltostr(buf, con->request.content_length);