Browse Source

Update ServletPortletHelper.java (#12087)

This is needed to get /UIDL working behind a reverse proxy. Without the change pathInfo would be "/UIDL" but prefix would be "/UIDL/" in line 105.
tags/8.12.0.alpha2
Clemens von Schwerin 3 years ago
parent
commit
dcd550ec74
No account linked to committer's email address

+ 4
- 0
server/src/main/java/com/vaadin/server/ServletPortletHelper.java View File

prefix = '/' + prefix; prefix = '/' + prefix;
} }


if (!pathInfo.endsWith("/") && prefix.endsWith("/")) {
pathInfo += '/';
}

if (pathInfo.startsWith(prefix)) { if (pathInfo.startsWith(prefix)) {
return true; return true;
} }

Loading…
Cancel
Save