Revert the use of Collections.singletonList instead of Arrays.asList in addCookieHeader of YoutubeParsingHelper
This commit is contained in:
parent
81013e5a8e
commit
a6a2c6eb80
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue