Revert the use of Collections.singletonList instead of Arrays.asList in addCookieHeader of YoutubeParsingHelper

This commit is contained in:
TiA4f8R 2021-06-11 13:01:21 +02:00
parent 81013e5a8e
commit a6a2c6eb80
No known key found for this signature in database
GPG Key ID: E6D3E7F5949450DD
1 changed files with 1 additions and 1 deletions

View File

@ -858,7 +858,7 @@ public class YoutubeParsingHelper {
*/
public static void addCookieHeader(final Map<String, List<String>> headers) {
if (headers.get("Cookie") == null) {
headers.put("Cookie", Collections.singletonList(generateConsentCookie()));
headers.put("Cookie", Arrays.asList(generateConsentCookie()));
} else {
headers.get("Cookie").add(generateConsentCookie());
}