[fix] Prevent adding the same cookie again and again.

This commit is contained in:
opi 2015-02-18 14:35:13 +01:00
parent 06be1fa65a
commit b9b6d09769

View file

@ -49,7 +49,9 @@ end
-- Set a cookie -- Set a cookie
function cook (cookie_str) function cook (cookie_str)
table.insert(cookies, cookie_str) if not is_in_table(cookies, cookie_str) then
table.insert(cookies, cookie_str)
end
end end