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.
pull/483/head
XiangRongLin 2020-12-16 08:32:04 +01:00
rodzic 85fa006214
commit ba8782a9ed
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -591,7 +591,7 @@ public class YoutubeParsingHelper {
}
public static String extractCookieValue(final String cookieName, final Response response) {
final List<String> cookies = response.responseHeaders().get("Set-Cookie");
final List<String> cookies = response.responseHeaders().get("set-cookie");
int startIndex;
String result = "";
for (final String cookie : cookies) {