diff options
Diffstat (limited to 'lib/unicorn/const.rb')
-rw-r--r-- | lib/unicorn/const.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/unicorn/const.rb b/lib/unicorn/const.rb index c05d333..c31b8e3 100644 --- a/lib/unicorn/const.rb +++ b/lib/unicorn/const.rb @@ -42,6 +42,9 @@ module Unicorn 503 => 'Service Unavailable', 504 => 'Gateway Time-out', 505 => 'HTTP Version not supported' + }.inject({}) { |hash,(code,msg)| + hash[code] = "#{code} #{msg}" + hash } # Frequently used constants when constructing requests or responses. Many times |