Mercurial Hosting > luan
diff src/luan/modules/http/Http.luan @ 1213:d5d5d29d7592
fix cookie bug
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 14 Mar 2018 18:50:18 -0600 |
parents | f9136432847e |
children | b6aa2cd51b02 |
line wrap: on
line diff
--- a/src/luan/modules/http/Http.luan Mon Mar 12 20:33:02 2018 -0600 +++ b/src/luan/modules/http/Http.luan Wed Mar 14 18:50:18 2018 -0600 @@ -98,6 +98,7 @@ function this.set_cookie(name,value,attributes) attributes = attributes or {} + attributes["Path"] = attributes["Path"] or "/" local attrMap = HashMap.new() for attr_name, attr_value in pairs(attributes) do type(attr_name)=="string" or "cookie attribute name must be string"