summary refs log tree commit
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2017-08-10 09:30:50 -0700
committerGitHub <noreply@github.com>2017-08-10 09:30:50 -0700
commit911c4fe15e3e57d44ac891c0cbabbf44bdf71201 (patch)
tree9cb191f59237c1acb7a57a04c5a5367c2267c75d
parent8693330130b565ad68d9aed70a2ba6a45194795a (diff)
parent0a9197e7f4a89f68647d561c38092088d526f852 (diff)
downloadrack-911c4fe15e3e57d44ac891c0cbabbf44bdf71201.tar.gz
Merge pull request #1191 from esparta/fix_code_block_http_status_code
Fix the code block used to generate the HTTP_STATUS_CODES hash
-rw-r--r--lib/rack/utils.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rack/utils.rb b/lib/rack/utils.rb
index 78aed4c0..d9128e3e 100644
--- a/lib/rack/utils.rb
+++ b/lib/rack/utils.rb
@@ -486,9 +486,9 @@ module Rack
 
     # Every standard HTTP code mapped to the appropriate message.
     # Generated with:
-    # curl -s https://www.iana.org/assignments/http-status-codes/http-status-codes-1.csv | \
-    #   ruby -ne 'm = /^(\d{3}),(?!Unassigned|\(Unused\))([^,]+)/.match($_) and \
-    #             puts "#{m[1]} => \x27#{m[2].strip}\x27,"'
+    #   curl -s https://www.iana.org/assignments/http-status-codes/http-status-codes-1.csv | \
+    #     ruby -ne 'm = /^(\d{3}),(?!Unassigned|\(Unused\))([^,]+)/.match($_) and \
+    #               puts "#{m[1]} => \x27#{m[2].strip}\x27,"'
     HTTP_STATUS_CODES = {
       100 => 'Continue',
       101 => 'Switching Protocols',