<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -22,7 +22,7 @@ module Rack
         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</diff>
      <filename>lib/rack/contrib/jsonp.rb</filename>
    </modified>
    <modified>
      <diff>@@ -11,7 +11,7 @@ context &quot;Rack::JSONP&quot; do
       app = lambda { |env| [200, {'Content-Type' =&gt; 'text/plain'}, [test_body]] }
       request = Rack::MockRequest.env_for(&quot;/&quot;, :input =&gt; &quot;foo=bar&amp;callback=#{callback}&quot;)
       body = Rack::JSONP.new(app).call(request).last
-      body.join.should.equal &quot;#{callback}(#{test_body})&quot;
+      body.should.equal &quot;#{callback}(#{test_body})&quot;
     end
 
     specify &quot;should modify the content length to the correct value&quot; do
@@ -25,7 +25,7 @@ context &quot;Rack::JSONP&quot; do
   end
 
   specify &quot;should not change anything if no callback param is provided&quot; do
-    app = lambda { |env| [200, {'Content-Type' =&gt; 'text/plain'}, '{&quot;bar&quot;:&quot;foo&quot;}'] }
+    app = lambda { |env| [200, {'Content-Type' =&gt; 'text/plain'}, ['{&quot;bar&quot;:&quot;foo&quot;}']] }
     request = Rack::MockRequest.env_for(&quot;/&quot;, :input =&gt; &quot;foo=bar&quot;)
     body = Rack::JSONP.new(app).call(request).last
     body.join.should.equal '{&quot;bar&quot;:&quot;foo&quot;}'</diff>
      <filename>test/spec_rack_jsonp.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f37b5748d3dcc493106fa43d4372a440b1771c58</id>
    </parent>
  </parents>
  <author>
    <name>Nicolas M&#233;rouze</name>
    <email>nicolas.merouze@gmail.com</email>
  </author>
  <url>http://github.com/rack/rack-contrib/commit/975a69ad41c39d7edbadc72980d394e429406b6f</url>
  <id>975a69ad41c39d7edbadc72980d394e429406b6f</id>
  <committed-date>2009-10-04T16:30:05-07:00</committed-date>
  <authored-date>2009-09-25T03:04:17-07:00</authored-date>
  <message>fix for JSON-P middleware returning bad body when no callback.</message>
  <tree>a11eee589e35c14d356a9453df23be299ec0bb31</tree>
  <committer>
    <name>Ryan Tomayko</name>
    <email>rtomayko@gmail.com</email>
  </committer>
</commit>
