From 5bbcb92dce2be398dac702d40b2600b0830e3ec3 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Tue, 30 Nov 2010 02:10:04 +0100 Subject: Fixing a couple of typos. --- lib/httplib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/httplib.lua') 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 -- cgit v1.2.3