diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-04-19 16:27:43 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-04-19 16:27:43 +0200 |
commit | 69b0974cbb6ada27d5bbdf0930e3a225acbaf8fb (patch) | |
tree | e8ca6fcffe2857bcac504275201a0e13bdf7290e /plugins/cgi | |
parent | 40735bb1229ae0369e7d763964ffbe543334b7c9 (diff) |
Bugfix: Add missing CGI variables: HTTPS, HTTP_REFERER, HTTP_COOKIE
Diffstat (limited to 'plugins/cgi')
-rw-r--r-- | plugins/cgi/cgi.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/cgi/cgi.cpp b/plugins/cgi/cgi.cpp index b8c2470..318dd1f 100644 --- a/plugins/cgi/cgi.cpp +++ b/plugins/cgi/cgi.cpp @@ -168,6 +168,9 @@ namespace { env["HTTP_CONNECTION"] = c.GetRequestParam("http_connection"); env["HTTP_HOST"] = c.GetRequestParam("http_host"); env["HTTP_USER_AGENT"] = c.GetRequestParam("http_user_agent"); + env["HTTP_REFERER"] = c.GetRequestParam("referer"); + env["HTTP_COOKIE"] = c.GetRequestParam("cookie"); + env["HTTPS"] = c.GetRequestParam("https"); } std::string executeFile(const fs::path& filename, CGIContext& context) |