1
0
mirror of https://github.com/lxsang/ant-http synced 2024-07-01 12:59:47 +02:00

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);
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,"");
}