aboutsummaryrefslogtreecommitdiff
path: root/www/lighttpd
diff options
context:
space:
mode:
authorMarcus Alves Grando <mnag@FreeBSD.org>2007-03-26 12:36:46 +0000
committerMarcus Alves Grando <mnag@FreeBSD.org>2007-03-26 12:36:46 +0000
commit70fc501aaec975fe7dad4f05dd5fdedbefc86ddd (patch)
treebe696d4ea4919fb2151d6b71d48713a644402ecf /www/lighttpd
parentc05ff30f0d875b76a8f809fec9b2ba88c13fbdf6 (diff)
Notes
Diffstat (limited to 'www/lighttpd')
-rw-r--r--www/lighttpd/files/patch-src__mod_cgi.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/www/lighttpd/files/patch-src__mod_cgi.c b/www/lighttpd/files/patch-src__mod_cgi.c
new file mode 100644
index 000000000000..11804920f657
--- /dev/null
+++ b/www/lighttpd/files/patch-src__mod_cgi.c
@@ -0,0 +1,18 @@
+#
+# http://trac.lighttpd.net/trac/ticket/861
+#
+--- src/mod_cgi.c.orig Mon Mar 26 09:25:21 2007
++++ src/mod_cgi.c Mon Mar 26 09:27:23 2007
+@@ -842,6 +842,12 @@
+ 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));