summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc/http.lua
diff options
context:
space:
mode:
Diffstat (limited to 'libs/web/luasrc/http.lua')
-rw-r--r--libs/web/luasrc/http.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/web/luasrc/http.lua b/libs/web/luasrc/http.lua
index fa8821c5a3..68dad8f1ec 100644
--- a/libs/web/luasrc/http.lua
+++ b/libs/web/luasrc/http.lua
@@ -33,4 +33,14 @@ if ENV and ENV.HASERLVER then
require("luci.sgi.haserl")
elseif webuci then
require("luci.sgi.webuci")
+end
+
+function build_querystring(table)
+ local s="?"
+
+ for k, v in pairs(table) do
+ s = s .. k .. "=" .. v .. "&"
+ end
+
+ return s
end \ No newline at end of file