webfs: fix cookie truncation bug, makes ebay work
This commit is contained in:
parent
b118d0c449
commit
7575684bc0
1 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue