Commit d631d43c authored by yanzg's avatar yanzg

异常处理显示

parent 13faa616
...@@ -103,7 +103,7 @@ public class CookiesHelper { ...@@ -103,7 +103,7 @@ public class CookiesHelper {
int page = StringHelper.getPage(toValue.length(), ITEM_MAX_SIZE); int page = StringHelper.getPage(toValue.length(), ITEM_MAX_SIZE);
// 总Cookies数量 // 总Cookies数量
addCookie(response, key, String.valueOf(page)); addCookie(response, key, String.valueOf(page));
for (int i = 0; i <= page; i++) { for (int i = 0; i < page; i++) {
String itemKey = String.format(TAG_FORMAT, key, i); String itemKey = String.format(TAG_FORMAT, key, i);
int start = i * ITEM_MAX_SIZE; int start = i * ITEM_MAX_SIZE;
int size = Math.min(toValue.length() - start, ITEM_MAX_SIZE); int size = Math.min(toValue.length() - start, ITEM_MAX_SIZE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment