summaryrefslogtreecommitdiffhomepage
path: root/libs/web
diff options
context:
space:
mode:
Diffstat (limited to 'libs/web')
-rw-r--r--libs/web/luasrc/http.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/web/luasrc/http.lua b/libs/web/luasrc/http.lua
index 89385a161..f2c366073 100644
--- a/libs/web/luasrc/http.lua
+++ b/libs/web/luasrc/http.lua
@@ -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 =