Standardise on URI and METHOD
diff --git a/www/roster/main.rb b/www/roster/main.rb index a6d121a..6e33ecd 100755 --- a/www/roster/main.rb +++ b/www/roster/main.rb
@@ -442,12 +442,12 @@ # Handle error and other conditions not_found do - @errors = env + @errors = { 'REQUEST_URI' => env['REQUEST_URI'], 'REQUEST_METHOD' => env['REQUEST_METHOD'] } _html :not_found end error do - @errors = env + @errors = { 'REQUEST_URI' => env['REQUEST_URI'], 'REQUEST_METHOD' => env['REQUEST_METHOD'] } _html :errors end
diff --git a/www/roster/views/errors.html.rb b/www/roster/views/errors.html.rb index 3034639..3ca6a63 100644 --- a/www/roster/views/errors.html.rb +++ b/www/roster/views/errors.html.rb
@@ -21,7 +21,7 @@ _p '"Hey, Rocky! Watch me pull a rabbit out of my hat."' _p 'Oh, snap! Something went wrong. Error details follow:' _ul do - %w( sinatra.route REQUEST_URI ).each do |k| + %w( REQUEST_URI REQUEST_METHOD ).each do |k| _li "#{k} = #{@errors[k]}" end end
diff --git a/www/roster/views/not_found.html.rb b/www/roster/views/not_found.html.rb index 4ad8f60..19ff0da 100644 --- a/www/roster/views/not_found.html.rb +++ b/www/roster/views/not_found.html.rb
@@ -24,7 +24,7 @@ } _a 'magic link.', href: '/roster/' _ul do - %w( sinatra.route REQUEST_URI ).each do |k| + %w( REQUEST_URI REQUEST_METHOD ).each do |k| _li "#{k} = #{@errors[k]}" end end