You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add notes for deprecated fields `comment` and `version`
- Split long Set-Cookie parsing method into smaller parts
- Remove unnecessary variable `header1`
Copy file name to clipboardExpand all lines: framework/fit/java/fit-builtin/services/fit-http-classic/definition/src/main/java/modelengine/fit/http/Cookie.java
Copy file name to clipboardExpand all lines: framework/fit/java/fit-builtin/services/fit-http-classic/definition/src/main/java/modelengine/fit/http/support/AbstractHttpClassicResponse.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -39,8 +39,8 @@ public abstract class AbstractHttpClassicResponse extends AbstractHttpMessage im
Copy file name to clipboardExpand all lines: framework/fit/java/fit-builtin/services/fit-http-classic/definition/src/main/java/modelengine/fit/http/support/DefaultCookieCollection.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,7 @@ public void add(Cookie cookie) {
90
90
if (cookie == null || StringUtils.isBlank(cookie.name())) {
91
91
return;
92
92
}
93
-
if (!HttpUtils.isValidCookiePair(cookie.name(), cookie.value())) {
93
+
if (HttpUtils.isInvalidCookiePair(cookie.name(), cookie.value())) {
94
94
thrownewIllegalArgumentException("Invalid cookie: name or value is not allowed");
95
95
}
96
96
store.computeIfAbsent(cookie.name(), k -> newArrayList<>());
Copy file name to clipboardExpand all lines: framework/fit/java/fit-builtin/services/fit-http-classic/definition/src/main/java/modelengine/fit/http/util/HttpUtils.java
+60-59Lines changed: 60 additions & 59 deletions
Original file line number
Diff line number
Diff line change
@@ -116,50 +116,13 @@ public static Cookie parseSetCookie(String rawCookie) {
116
116
returnCookie.builder().build();
117
117
}
118
118
119
-
Cookie.Builderbuilder = Cookie.builder();
120
-
121
-
String[] parts = rawCookie.split(COOKIES_PARSE_SEPARATOR);
0 commit comments