Permalink
Browse files

return an array of strings for 1.9

  • Loading branch information...
1 parent f3bfa65 commit 535c3994db386de2fff43b0c6f6fed9d14f70f21 TJ Singleton committed Mar 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rack/throttle/limiter.rb
@@ -188,7 +188,7 @@ def rate_limit_exceeded
# @return [Array(Integer, Hash, #each)]
def http_error(code, message = nil, headers = {})
[code, {'Content-Type' => 'text/plain; charset=utf-8'}.merge(headers),
- http_status(code) + (message.nil? ? "\n" : " (#{message})\n")]
+ [http_status(code), (message.nil? ? "\n" : " (#{message})\n")]]
end
##

0 comments on commit 535c399

Please sign in to comment.