* Fixed SGI webuci to work with new HTTP API
[project/luci.git] / libs / web / luasrc / http.lua
index 89385a1..f2c3660 100644 (file)
@@ -52,7 +52,7 @@ function Request.__init__(self, env, instream, errstream)
        self.message = {
                env = env,
                headers = {},
-               params = luci.http.protocol.urldecode_params("?"..env.QUERY_STRING),
+               params = luci.http.protocol.urldecode_params("?"..(env.QUERY_STRING or "")),
        }
        
        setmetatable(self.message.params, {__index =