mirror of
https://github.com/lxsang/ant-http
synced 2024-11-17 17:08:20 +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,' ');
|
||||
token1 = strsep(&token,"=");
|
||||
if(token1)
|
||||
if(token1 && token && strlen(token) > 0)
|
||||
{
|
||||
if(dic == NULL)
|
||||
dic = dict();
|
||||
|
Loading…
Reference in New Issue
Block a user