Skip to content

Commit

Permalink
Merge branch 'takagen99:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Klosw authored Mar 25, 2024
2 parents d52fb8a + bb9034f commit 060f2da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -948,6 +948,9 @@ public void onChanged(JSONObject info) {
headers.put(key, hds.getString(key));
if (key.equalsIgnoreCase("user-agent")) {
webUserAgent = hds.getString(key).trim();
} else if (key.equalsIgnoreCase("cookie")) {
for (String split : hds.getString(key).split(";"))
CookieManager.getInstance().setCookie(url, split.trim());
}
}
webHeaderMap = headers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,9 @@ public void onChanged(JSONObject info) {
headers.put(key, hds.getString(key));
if (key.equalsIgnoreCase("user-agent")) {
webUserAgent = hds.getString(key).trim();
} else if (key.equalsIgnoreCase("cookie")) {
for (String split : hds.getString(key).split(";"))
CookieManager.getInstance().setCookie(url, split.trim());
}
}
webHeaderMap = headers;
Expand Down

0 comments on commit 060f2da

Please sign in to comment.