From 7c2462940bccccdaa9885975634887fd3fc119c5 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 1 Nov 2016 12:19:56 +0000 Subject: [PATCH] add PATH to cookie --- plugins/plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/plugin.c b/plugins/plugin.c index 662856f..20c6407 100644 --- a/plugins/plugin.c +++ b/plugins/plugin.c @@ -243,7 +243,7 @@ void set_cookie(int client,const char* type, dictionary dic) __t(client,"Content-Type: %s",type); association assoc; for_each_assoc(assoc,dic){ - __t(client,"Set-Cookie: %s=%s",assoc->key, (char*)assoc->value); + __t(client,"Set-Cookie: %s=%s; Path=/%s",assoc->key, (char*)assoc->value, __plugin__.name); } response(client,""); }