lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject svn commit: r718556 - /lucene/solr/trunk/contrib/velocity/src/main/java/org/apache/solr/request/VelocityResponseWriter.java
Date Tue, 18 Nov 2008 11:02:47 GMT
Author: ehatcher
Date: Tue Nov 18 03:02:46 2008
New Revision: 718556

URL: http://svn.apache.org/viewvc?rev=718556&view=rev
Log:
Fix errant refactoring - v.json is not a boolean parameter, doh

Modified:
    lucene/solr/trunk/contrib/velocity/src/main/java/org/apache/solr/request/VelocityResponseWriter.java

Modified: lucene/solr/trunk/contrib/velocity/src/main/java/org/apache/solr/request/VelocityResponseWriter.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/contrib/velocity/src/main/java/org/apache/solr/request/VelocityResponseWriter.java?rev=718556&r1=718555&r2=718556&view=diff
==============================================================================
--- lucene/solr/trunk/contrib/velocity/src/main/java/org/apache/solr/request/VelocityResponseWriter.java
(original)
+++ lucene/solr/trunk/contrib/velocity/src/main/java/org/apache/solr/request/VelocityResponseWriter.java
Tue Nov 18 03:02:46 2008
@@ -44,7 +44,7 @@
     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") + "(");



Mime
View raw message