From 0a9197e7f4a89f68647d561c38092088d526f852 Mon Sep 17 00:00:00 2001 From: Espartaco Palma Date: Tue, 11 Jul 2017 22:34:27 -0700 Subject: Fix the code block used to generate the HTTP_STATUS_CODES hash [skip ci] --- lib/rack/utils.rb | 6 +++--- 1 file 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', -- cgit v1.2.3-24-ge0c7