mirror of https://github.com/apache/lucene.git
Fix errant refactoring - v.json is not a boolean parameter, doh
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@718556 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
eca2d15122
commit
24b25d5314
|
@ -44,7 +44,7 @@ public class VelocityResponseWriter implements QueryResponseWriter {
|
|||
context.put("esc", new EscapeTool());
|
||||
|
||||
// create output, optionally wrap it into a json object
|
||||
if (request.getParams().getBool("v.json", false)) {
|
||||
if (request.getParams().get("v.json") != null) {
|
||||
StringWriter stringWriter = new StringWriter();
|
||||
template.merge(context, stringWriter);
|
||||
writer.write(request.getParams().get("v.json") + "(");
|
||||
|
|
Loading…
Reference in New Issue