From 65d73e56523785aa423fd9d23bacd7551a9ddb52 Mon Sep 17 00:00:00 2001 From: orbiter Date: Tue, 19 Mar 2013 00:59:47 +0100 Subject: [PATCH] renamed callback function to 'callback' because that is a standard for jsonp which is also used in backbone.js/jquery --- .../cora/federate/solr/responsewriter/JsonResponseWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/yacy/cora/federate/solr/responsewriter/JsonResponseWriter.java b/source/net/yacy/cora/federate/solr/responsewriter/JsonResponseWriter.java index 7f3a2ca3a..9f14cf6d2 100644 --- a/source/net/yacy/cora/federate/solr/responsewriter/JsonResponseWriter.java +++ b/source/net/yacy/cora/federate/solr/responsewriter/JsonResponseWriter.java @@ -107,7 +107,7 @@ public class JsonResponseWriter implements QueryResponseWriter { resHead.offset = response.offset(); // equal to 'start' resHead.numFound = response.matches(); - String jsonp = request.getParams().get("jsonp"); // check for JSONP + String jsonp = request.getParams().get("callback"); // check for JSONP if (jsonp != null) { writer.write(jsonp.toCharArray()); writer.write("([".toCharArray());