webfs: fix cookie truncation bug, makes ebay work

This commit is contained in:
cinap_lenrek 2011-09-23 08:24:42 +02:00
parent b118d0c449
commit 7575684bc0

View file

@ -1031,7 +1031,6 @@ struct Aux
};
enum
{
AuxBuf = 4096,
MaxCtext = 16*1024*1024,
};
@ -1162,12 +1161,12 @@ httpsetcookie(char *hdr, char *dom, char *path)
char*
httpcookies(char *dom, char *path, int issecure)
{
char buf[1024];
char *s;
Jar *j;
syncjar(jar);
j = cookiesearch(jar, dom, path, issecure);
snprint(buf, sizeof buf, "%J", j);
s = smprint("%J", j);
closejar(j);
return estrdup(buf);
return s;
}