Skip to content

Commit

Permalink
fix extension hook
Browse files Browse the repository at this point in the history
  • Loading branch information
tboeghk committed Feb 4, 2021
1 parent 5a4f93d commit 9c87235
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/cool/solr/response/ThymeleafResponseWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ public void write(Writer writer, SolrQueryRequest request, SolrQueryResponse res
}
}

// let subclasses add context info (if needed)
preProcess(context, request, response);

SolrResponse rsp = new QueryResponse();
NamedList<Object> parsedResponse = BinaryResponseWriter.getParsedResponse(request, response);
rsp.setResponse(parsedResponse);
context.setVariable("response", rsp);

// let subclasses add context info (if needed)
preProcess(context, request, response);

getEngine().process(templateName, context, writer);
}

Expand Down

0 comments on commit 9c87235

Please sign in to comment.