summaryrefslogtreecommitdiff
path: root/lib/httplib.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/httplib.lua')
-rw-r--r--lib/httplib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/httplib.lua b/lib/httplib.lua
index 26d66bd..9642e11 100644
--- a/lib/httplib.lua
+++ b/lib/httplib.lua
@@ -59,7 +59,7 @@ function get_cookies(req)
local k, v
for k, v in pairs(cookie_strings) do
- local cname, cvalue = string.match(v, "(%[^=]+)=(.+)")
+ local cname, cvalue = string.match(v, "([^=]+)=(.+)")
if cname then cookies[trim(cname)] = trim(cvalue) end
end
end