Fix HTML response during redirection
It misses a quote... Closes #11374
This commit is contained in:
parent
ce6aa258a9
commit
ea4e514385
|
@ -189,7 +189,7 @@ public class HttpServer extends AbstractLifecycleComponent<HttpServer> {
|
||||||
sitePath = null;
|
sitePath = null;
|
||||||
// If a trailing / is missing, we redirect to the right page #2654
|
// If a trailing / is missing, we redirect to the right page #2654
|
||||||
String redirectUrl = request.rawPath() + "/";
|
String redirectUrl = request.rawPath() + "/";
|
||||||
BytesRestResponse restResponse = new BytesRestResponse(RestStatus.MOVED_PERMANENTLY, "text/html", "<head><meta http-equiv=\"refresh\" content=\"0; URL=" + redirectUrl + "></head>");
|
BytesRestResponse restResponse = new BytesRestResponse(RestStatus.MOVED_PERMANENTLY, "text/html", "<head><meta http-equiv=\"refresh\" content=\"0; URL=" + redirectUrl + "\"></head>");
|
||||||
restResponse.addHeader("Location", redirectUrl);
|
restResponse.addHeader("Location", redirectUrl);
|
||||||
channel.sendResponse(restResponse);
|
channel.sendResponse(restResponse);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue