add PATH to cookie

This commit is contained in:
root 2016-11-01 12:19:56 +00:00
parent b20085903e
commit 7c2462940b

View File

@ -243,7 +243,7 @@ void set_cookie(int client,const char* type, dictionary dic)
__t(client,"Content-Type: %s",type); __t(client,"Content-Type: %s",type);
association assoc; association assoc;
for_each_assoc(assoc,dic){ 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,""); response(client,"");
} }