Skip to content

Commit ba8782a

Browse files
committed
Use lowercase string for extracting cookies
The map in a real response happens to ignore upper-/lowercase differences. Other maps used in unit test may not have that behaviour.
1 parent 85fa006 commit ba8782a

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
@@ -591,7 +591,7 @@ public static Response getResponse(final String url, final Localization localiza
591591
}
592592

593593
public static String extractCookieValue(final String cookieName, final Response response) {
594-
final List<String> cookies = response.responseHeaders().get("Set-Cookie");
594+
final List<String> cookies = response.responseHeaders().get("set-cookie");
595595
int startIndex;
596596
String result = "";
597597
for (final String cookie : cookies) {

0 commit comments

Comments
 (0)