Commit c399ca73 authored by Deucе's avatar Deucе 👌🏾

Some CGI programs know they're not running from a console because

QUERY_STRING is defined (even if blank).

Always define it.
parent 2e9c36ae
Pipeline #668 passed with stage
in 10 minutes and 25 seconds
......@@ -3243,8 +3243,7 @@ static BOOL get_req(http_session_t * session, char *request_line)
/* FREE()d in http_logging_thread() */
session->req.ld->vhost=strdup(session->req.vhost);
session->req.dynamic=is_dynamic_req(session);
if(session->req.query_str[0])
add_env(session,"QUERY_STRING",session->req.query_str);
add_env(session,"QUERY_STRING",session->req.query_str);
add_env(session,"REQUEST_METHOD",methods[session->req.method]);
add_env(session,"SERVER_PROTOCOL",session->http_ver ?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment