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.
This commit is contained in:
XiangRongLin 2020-12-16 08:32:04 +01:00
parent 85fa006214
commit ba8782a9ed
1 changed files with 1 additions and 1 deletions

View File

@ -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) {