changeset 1213:d5d5d29d7592

fix cookie bug
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 14 Mar 2018 18:50:18 -0600
parents 220228bf1af9
children bae51e2d34c9
files src/luan/modules/http/Http.luan
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
diff -r 220228bf1af9 -r d5d5d29d7592 src/luan/modules/http/Http.luan
--- 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"