Browse Source

[core] add back REQUEST_SCHEME for backends

x-ref:
  "[core] Add back REQUEST_SCHEME (for use in e.g. mod_ssi)"
  https://github.com/lighttpd/lighttpd1.4/pull/85

github: closes #85
personal/stbuehler/cleanup-build
fbrosson 4 years ago
committed by Glenn Strauss
parent
commit
9b0e095c9f
  1. 3
      src/http-header-glue.c

3
src/http-header-glue.c

@ -1452,6 +1452,9 @@ int http_cgi_headers (server *srv, connection *con, http_cgi_opts *opts, http_cg
rc |= cb(vdata, CONST_STR_LEN("GATEWAY_INTERFACE"),
CONST_STR_LEN("CGI/1.1"));
rc |= cb(vdata, CONST_STR_LEN("REQUEST_SCHEME"),
CONST_BUF_LEN(con->uri.scheme));
if (buffer_is_equal_caseless_string(con->uri.scheme,
CONST_STR_LEN("https"))) {
rc |= cb(vdata, CONST_STR_LEN("HTTPS"), CONST_STR_LEN("on"));

Loading…
Cancel
Save