diff --git a/lib/mobvious/manager.rb b/lib/mobvious/manager.rb index b15c04f..0635fe7 100644 --- a/lib/mobvious/manager.rb +++ b/lib/mobvious/manager.rb @@ -24,7 +24,7 @@ def call(env) status, headers, body = @app.call(env) - response = (body.is_a?(Rack::Response) ? body : Rack::Response.new(body, status, headers)) + response = (body.is_a?(Array) ? Rack::Response.new(body, status, headers) : body) response_callback(request, response) [status, headers, body]