mirror of
https://github.com/TeamNewPipe/NewPipeExtractor
synced 2024-12-12 20:10:00 +01:00
Revert the use of Collections.singletonList instead of Arrays.asList in addCookieHeader of YoutubeParsingHelper
This commit is contained in:
parent
81013e5a8e
commit
a6a2c6eb80
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user