diff options
author | Arno Töll <arno@debian.org> | 2012-11-21 23:03:46 +0100 |
---|---|---|
committer | Arno Töll <arno@debian.org> | 2012-11-21 23:03:46 +0100 |
commit | 0f22664a8c9f92c8b7d5dd05772bacf7caecbd52 (patch) | |
tree | c85da4e4968e5ec69d6d154fa032672f45cb3e13 /src/mod_cgi.c | |
parent | 9fa7c3d770fb8688555b661940e04c3bf6b6d8aa (diff) | |
download | lighttpd-0f22664a8c9f92c8b7d5dd05772bacf7caecbd52.tar.gz |
Imported Upstream version 1.4.15upstream/1.4.15
Diffstat (limited to 'src/mod_cgi.c')
-rw-r--r-- | src/mod_cgi.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mod_cgi.c b/src/mod_cgi.c index a6f8756..7da9815 100644 --- a/src/mod_cgi.c +++ b/src/mod_cgi.c @@ -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) { + cgi_env_add(&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)); |