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