[core,gateway] only encode a cookie line if there is a cookie

This commit is contained in:
akarl10 2023-06-28 10:18:23 +02:00 committed by akallabeth
parent 266bbebfbb
commit 7f19fab76e

View File

@ -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;
}