Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. config.middleware.use Rack::ContentLength
  2.  
  3. if !STATUS_WITH_NO_ENTITY_BODY.include?(status.to_i) &&
  4. !headers['Content-Length'] &&
  5. !headers['Transfer-Encoding'] &&
  6. body.respond_to?(:to_ary)
  7.  
  8. def respond_to?(*args)
  9. return false if args.first.to_s =~ /^to_ary$/
  10. super or @body.respond_to?(*args)
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement