Skip to content

Commit

Permalink
Fix bug(jhy#1831)
Browse files Browse the repository at this point in the history
  • Loading branch information
lvpiao committed Sep 7, 2022
1 parent eabfcdd commit d08c34a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/jsoup/helper/HttpConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -1128,8 +1128,8 @@ void processResponseHeaders(Map<String, List<String>> resHeaders) {
String cookieVal = cd.consumeTo(";").trim();
// ignores path, date, domain, validateTLSCertificates et al. full details will be available in cookiestore if required
// name not blank, value not null
if (cookieName.length() > 0 && !cookies.containsKey(cookieName)) // if duplicates, only keep the first
cookie(cookieName, cookieVal);
// If repeated, overwrite it with the latest one
cookie(cookieName, cookieVal);
}
}
for (String value : values) {
Expand Down

0 comments on commit d08c34a

Please sign in to comment.