lib/rack/contrib/jsonp.rb in tricycle-rack-contrib-0.9.3 vs lib/rack/contrib/jsonp.rb in tricycle-rack-contrib-0.9.5
- old
+ new
@@ -20,10 +20,10 @@
request = Rack::Request.new(env)
if request.params.include?('callback')
response = pad(request.params.delete('callback'), response)
headers['Content-Length'] = response.length.to_s
end
- [status, headers, [response]]
+ [status, headers, response]
end
# Pads the response with the appropriate callback format according to the
# JSON-P spec/requirements.
#