diff options
author | Stefan Fritsch <sf@apache.org> | 2010-12-30 13:34:19 +0100 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2010-12-30 13:34:19 +0100 |
commit | 6c6979ede6d856855c854119673ec40f40a7c0c7 (patch) | |
tree | 3149f27077c90a36e6d62c3b08deecd0b0c931ee /server/util_script.c | |
parent | Add -T operator to allow easy evaluation of on/off, 1/0, ... variables (diff) | |
download | apache2-6c6979ede6d856855c854119673ec40f40a7c0c7.tar.xz apache2-6c6979ede6d856855c854119673ec40f40a7c0c7.zip |
Make the REQUEST_SCHEME variable available to scripts and mod_rewrite
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1053872 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/util_script.c')
-rw-r--r-- | server/util_script.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/util_script.c b/server/util_script.c index d8c3f1f297..2d070816f0 100644 --- a/server/util_script.c +++ b/server/util_script.c @@ -337,6 +337,7 @@ AP_DECLARE(void) ap_add_cgi_vars(request_rec *r) apr_table_setn(e, "GATEWAY_INTERFACE", "CGI/1.1"); apr_table_setn(e, "SERVER_PROTOCOL", r->protocol); apr_table_setn(e, "REQUEST_METHOD", r->method); + apr_table_setn(e, "REQUEST_SCHEME", ap_http_scheme(r)); apr_table_setn(e, "QUERY_STRING", r->args ? r->args : ""); apr_table_setn(e, "REQUEST_URI", original_uri(r)); |