Skip to content

Commit e04a262

Browse files
committed
reverted set-cookie - only used once
1 parent 999264c commit e04a262

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

‎support/jakarta-ee/src/main/java/org/apache/shiro/ee/filters/FormResubmitResponse.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
package org.apache.shiro.ee.filters;
1515

1616
import static org.apache.shiro.ee.filters.FormResubmitSupport.HttpHeaderConstants.LOCATION;
17-
import static org.apache.shiro.ee.filters.FormResubmitSupport.HttpHeaderConstants.SET_COOKIE;
1817
import jakarta.servlet.http.Cookie;
1918
import jakarta.servlet.http.HttpServletResponse;
2019
import jakarta.servlet.http.HttpServletResponseWrapper;
@@ -38,6 +37,7 @@
3837
* cannot disturb what the login request has already written, such as session cookies.
3938
*/
4039
final class FormResubmitResponse extends BufferedHttpServletResponse {
40+
private static final String SET_COOKIE = "Set-Cookie";
4141
private final List<Deferred> deferred = new ArrayList<>();
4242
private final @Delegate(types = Captured.class) HttpServletResponse recorder;
4343
private @Getter @Setter int status = SC_OK;

‎support/jakarta-ee/src/main/java/org/apache/shiro/ee/filters/FormResubmitSupport.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ static class HttpMethod {
104104

105105
static class HttpHeaderConstants {
106106
static final String LOCATION = "Location";
107-
static final String SET_COOKIE = "Set-Cookie";
108107
}
109108

110109
/**

0 commit comments

Comments
 (0)