Skip to content
Browse files

Removing unneeded statement

  • Loading branch information...
1 parent 3e26836 commit 6ea441921bb0c729985b30afb083f260c2ecbb78 @runeb runeb committed
Showing with 0 additions and 2 deletions.
  1. +0 −2 lib/rack/contrib/jsonp.rb
View
2 lib/rack/contrib/jsonp.rb
@@ -31,8 +31,6 @@ def call(env)
# Set new Content-Length, if it was set before we mutated the response body
if headers['Content-Length']
- # Code from Rack::ContentLength
- response = [response] if response.respond_to?(:to_str) # rack 0.4 compat
length = response.to_ary.inject(0) { |len, part| len + bytesize(part) }
headers['Content-Length'] = length.to_s
end

0 comments on commit 6ea4419

Please sign in to comment.
Something went wrong with that request. Please try again.