Rack::JSONP checks the callback parameters on non-JSON response types #43

merged 2 commits into from Dec 10, 2012
Commits on Sep 25, 2011
  1. Only check for invalid callbacks after finding response to be JSON.

    benmanns committed Sep 25, 2011
    Previously, a request to /widgets.html?callback=* would send a 400 "Bad Request" response to the client. This change only sends 400 "Bad Request" if the response type is JSON.