This commit is contained in:
Redkale
2018-01-29 16:16:50 +08:00
parent adafb9645c
commit 9f4f459ea8
2 changed files with 2 additions and 2 deletions

View File

@@ -476,7 +476,7 @@ public class HttpResponse extends Response<HttpContext, HttpRequest> {
context.getLogger().log(Level.WARNING, "HttpServlet not found HttpTemplateEngine. request = " + getRequest() + ", scope = " + scope);
finish(500, null);
} else {
templateEngine.renderTo(this, scope);
templateEngine.renderTo(this.request, this, scope);
}
} else {
if (convert instanceof TextConvert) this.contentType = "text/plain; charset=utf-8";

View File

@@ -20,5 +20,5 @@ public interface HttpTemplateEngine {
default void init(HttpContext context, AnyValue config) {
}
public void renderTo(HttpResponse response, HttpScope scope);
public void renderTo(HttpRequest request, HttpResponse response, HttpScope scope);
}