* luci/libs/httpprotocol: store QUERY_STRING in environment too, fixes query strings with luci-httpd and propably others
This commit is contained in:
parent
676203d1fc
commit
a957254e79
1 changed files with 3 additions and 1 deletions
|
@ -568,7 +568,9 @@ function parse_message_header( src )
|
||||||
REQUEST_URI = msg.request_uri;
|
REQUEST_URI = msg.request_uri;
|
||||||
SCRIPT_NAME = msg.request_uri:gsub("?.+$","");
|
SCRIPT_NAME = msg.request_uri:gsub("?.+$","");
|
||||||
SCRIPT_FILENAME = ""; -- XXX implement me
|
SCRIPT_FILENAME = ""; -- XXX implement me
|
||||||
SERVER_PROTOCOL = "HTTP/" .. string.format("%.1f", msg.http_version)
|
SERVER_PROTOCOL = "HTTP/" .. string.format("%.1f", msg.http_version);
|
||||||
|
QUERY_STRING = msg.request_uri:match("?")
|
||||||
|
and msg.request_uri:gsub("^.+?","") or ""
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Populate HTTP_* environment variables
|
-- Populate HTTP_* environment variables
|
||||||
|
|
Loading…
Reference in a new issue