Skip to content

Commit

Permalink
fix cookie issue
Browse files Browse the repository at this point in the history
copy of https://github.com/yarl/vicuna/pull/123/files

Co-Authored-By: Michal Josef Špaček <[email protected]>
  • Loading branch information
yarl and michal-josef-spacek committed Apr 9, 2020
1 parent 71559a2 commit 8ef330f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/wikipedia/Wiki.java
Original file line number Diff line number Diff line change
Expand Up @@ -7682,7 +7682,7 @@ private void grabCookies(URLConnection u)
{
String headerName;
for (int i = 1; (headerName = u.getHeaderFieldKey(i)) != null; i++)
if (headerName.equals("Set-Cookie"))
if (headerName.equalsIgnoreCase("Set-Cookie"))
{
String cookie = u.getHeaderField(i);
cookie = cookie.substring(0, cookie.indexOf(';'));
Expand Down

0 comments on commit 8ef330f

Please sign in to comment.