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

View file

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