Skip to content

Commit

Permalink
Revert the use of Collections.singletonList instead of Arrays.asList …
Browse files Browse the repository at this point in the history
…in addCookieHeader of YoutubeParsingHelper
  • Loading branch information
AudricV committed Jun 15, 2021
1 parent e4b5115 commit d463636
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ public static void addClientInfoHeaders(final Map<String, List<String>> headers)
*/
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());
}
Expand Down

0 comments on commit d463636

Please sign in to comment.