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:
parent
85fa006214
commit
ba8782a9ed
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue