- add HTTPS=on to the environment of cgi scripts (#861)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1684 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
parent
892ebbe530
commit
b3f333d32e
|
@ -842,6 +842,12 @@ static int cgi_create_env(server *srv, connection *con, plugin_data *p, buffer *
|
|||
CONST_BUF_LEN(con->authed_user));
|
||||
}
|
||||
|
||||
#ifdef USE_OPENSSL
|
||||
if (srv_sock->is_ssl) {
|
||||
fcgi_env_add(p->fcgi_env, CONST_STR_LEN("HTTPS"), CONST_STR_LEN("on"));
|
||||
}
|
||||
#endif
|
||||
|
||||
/* request.content_length < SSIZE_MAX, see request.c */
|
||||
ltostr(buf, con->request.content_length);
|
||||
cgi_env_add(&env, CONST_STR_LEN("CONTENT_LENGTH"), buf, strlen(buf));
|
||||
|
|
Loading…
Reference in New Issue