mirror of
https://github.com/lxsang/ant-http
synced 2024-12-26 00:38:21 +01:00
add PATH to cookie
This commit is contained in:
parent
b20085903e
commit
7c2462940b
@ -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,"");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user