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:
Erik Hatcher 2008-11-18 11:02:46 +00:00
parent eca2d15122
commit 24b25d5314
1 changed files with 1 additions and 1 deletions

View File

@ -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") + "(");