This commit is contained in:
@@ -476,7 +476,7 @@ public class HttpResponse extends Response<HttpContext, HttpRequest> {
|
|||||||
context.getLogger().log(Level.WARNING, "HttpServlet not found HttpTemplateEngine. request = " + getRequest() + ", scope = " + scope);
|
context.getLogger().log(Level.WARNING, "HttpServlet not found HttpTemplateEngine. request = " + getRequest() + ", scope = " + scope);
|
||||||
finish(500, null);
|
finish(500, null);
|
||||||
} else {
|
} else {
|
||||||
templateEngine.renderTo(this, scope);
|
templateEngine.renderTo(this.request, this, scope);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (convert instanceof TextConvert) this.contentType = "text/plain; charset=utf-8";
|
if (convert instanceof TextConvert) this.contentType = "text/plain; charset=utf-8";
|
||||||
|
|||||||
@@ -20,5 +20,5 @@ public interface HttpTemplateEngine {
|
|||||||
default void init(HttpContext context, AnyValue config) {
|
default void init(HttpContext context, AnyValue config) {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void renderTo(HttpResponse response, HttpScope scope);
|
public void renderTo(HttpRequest request, HttpResponse response, HttpScope scope);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user