Fix HTML response during redirection

It misses a quote...

Closes #11374
This commit is contained in:
David Tvaltchrelidze 2015-05-27 14:30:17 +01:00 committed by Boaz Leskes
parent ce6aa258a9
commit ea4e514385
1 changed files with 1 additions and 1 deletions

View File

@ -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;