mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-29 00:10:35 +05:30
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) {
|
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;
|
int startIndex;
|
||||||
String result = "";
|
String result = "";
|
||||||
for (final String cookie : cookies) {
|
for (final String cookie : cookies) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user