Skip to content

Commit a6a2c6e

Browse files
committed
Revert the use of Collections.singletonList instead of Arrays.asList in addCookieHeader of YoutubeParsingHelper
1 parent 81013e5 commit a6a2c6e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ public static void addClientInfoHeaders(final Map<String, List<String>> headers)
858858
*/
859859
public static void addCookieHeader(final Map<String, List<String>> headers) {
860860
if (headers.get("Cookie") == null) {
861-
headers.put("Cookie", Collections.singletonList(generateConsentCookie()));
861+
headers.put("Cookie", Arrays.asList(generateConsentCookie()));
862862
} else {
863863
headers.get("Cookie").add(generateConsentCookie());
864864
}

0 commit comments

Comments
 (0)