[core,gateway] only encode a cookie line if there is a cookie
This commit is contained in:
parent
266bbebfbb
commit
7f19fab76e
@ -561,10 +561,10 @@ static BOOL http_encode_cookie_line(wStream* s, wListDictionary* cookies)
|
||||
status = http_encode_print(s, "%s=%s", (char*)keys[x], cur);
|
||||
}
|
||||
|
||||
status = http_encode_print(s, "\r\n");
|
||||
unlock:
|
||||
free(keys);
|
||||
ListDictionary_Unlock(cookies);
|
||||
status = http_encode_print(s, "\r\n");
|
||||
return status;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user