mirror of
https://github.com/lxsang/ant-http
synced 2024-11-19 09:48:22 +01:00
fix cookie read error
This commit is contained in:
parent
f2a2139e5b
commit
dab7e28903
@ -682,7 +682,7 @@ dictionary decode_cookie(const char* line)
|
|||||||
{
|
{
|
||||||
trim(token,' ');
|
trim(token,' ');
|
||||||
token1 = strsep(&token,"=");
|
token1 = strsep(&token,"=");
|
||||||
if(token1)
|
if(token1 && token && strlen(token) > 0)
|
||||||
{
|
{
|
||||||
if(dic == NULL)
|
if(dic == NULL)
|
||||||
dic = dict();
|
dic = dict();
|
||||||
|
Loading…
Reference in New Issue
Block a user