This repository was archived by the owner on Dec 15, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-14
lines changed
core/src/main/java/org/mvcspec/ozark Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -84,22 +84,12 @@ public void init() {
84
84
85
85
}
86
86
87
- @ Override
88
- public String getContextPath () {
89
- return servletContext .getContextPath (); // normalized by servlet
90
- }
91
-
92
- @ Override
93
- public String getApplicationPath () {
94
- return applicationPath ;
95
- }
96
-
97
87
@ Override
98
88
public String getBasePath () {
99
- if (getApplicationPath () != null ) {
100
- return getContextPath () + getApplicationPath () ;
89
+ if (applicationPath != null ) {
90
+ return servletContext . getContextPath () + applicationPath ;
101
91
}
102
- return getContextPath ();
92
+ return servletContext . getContextPath ();
103
93
}
104
94
105
95
@ Override
Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ public void controllerRedirectEvent(@Observes ControllerRedirectEvent event) {
252
252
if (request .getAttribute (SCOPE_ID ) != null ) {
253
253
if (usingCookies ()) {
254
254
Cookie cookie = new Cookie (COOKIE_NAME , request .getAttribute (SCOPE_ID ).toString ());
255
- cookie .setPath (mvc .getContextPath ());
255
+ cookie .setPath (request .getContextPath ());
256
256
cookie .setMaxAge (600 );
257
257
cookie .setHttpOnly (true );
258
258
response .addCookie (cookie );
You can’t perform that action at this time.
0 commit comments