diff options
Diffstat (limited to 'libs')
-rw-r--r-- | libs/lucid-http/luasrc/lucid/http/server.lua | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libs/lucid-http/luasrc/lucid/http/server.lua b/libs/lucid-http/luasrc/lucid/http/server.lua index 70a1726218..67e917892e 100644 --- a/libs/lucid-http/luasrc/lucid/http/server.lua +++ b/libs/lucid-http/luasrc/lucid/http/server.lua @@ -343,13 +343,8 @@ function Server.parse_headers(self, source) break end until false - - if env.REQUEST_URI:find("?") then - env.SCRIPT_NAME, env.QUERY_STRING = env.REQUEST_URI:match("([^%?]*)%?(.*)") - else - env.SCRIPT_NAME, env.QUERY_STRING = env.REQUEST_URI, nil - end - + + env.SCRIPT_NAME, env.QUERY_STRING = env.REQUEST_URI:match("([^?]*)%??(.*)") return req end |