renamed callback function to 'callback' because that is a standard for

jsonp which is also used in backbone.js/jquery
pull/1/head
orbiter 12 years ago
parent 17ae51e741
commit 65d73e5652

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

Loading…
Cancel
Save