Permalink
Browse files

Merge pull request #50 from tarcieri/reel

Update to current Reel API
  • Loading branch information...
2 parents e0b21df + cbf7490 commit da86612890b9332ec48d54649e2fb397d03ba01e @seancribbs seancribbs committed Jun 3, 2012
Showing with 1 addition and 8 deletions.
  1. +1 −8 lib/webmachine/adapters/reel.rb
@@ -33,14 +33,7 @@ def process(connection)
response = Webmachine::Response.new
@dispatcher.dispatch(request,response)
- wres = case response.body
- when String
- ::Reel::Response.new(response.code, response.headers, response.body)
- when Enumerable
- ::Reel::StreamingResponse.new(response.code, response.headers, response.body)
- end
-
- connection.respond(wres)
+ connection.respond ::Reel::Response.new(response.code, response.headers, response.body)
end
end
end

0 comments on commit da86612

Please sign in to comment.