diff --git a/History.md b/History.md index 6bc8fa8692..a7a2bb8884 100644 --- a/History.md +++ b/History.md @@ -6,6 +6,9 @@ * Bugfixes * Your bugfix goes here (#Github Number) +## 4.3.4/4.3.5 and 3.12.5/3.12.6 / 2020-05-22 + +Each patchlevel release contains a separate security fix. We recommend simply upgrading to 4.3.5/3.12.6. ## 4.3.3 and 3.12.4 / 2020-02-28 * Bugfixes diff --git a/lib/puma/app/status.rb b/lib/puma/app/status.rb index 2e4b4e4c3e..3222ffc451 100644 --- a/lib/puma/app/status.rb +++ b/lib/puma/app/status.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'json' - module Puma module App # Check out {#call}'s source code to see what actions this web application @@ -19,6 +17,10 @@ def call(env) return rack_response(403, 'Invalid auth token', 'text/plain') end + if env['PATH_INFO'] =~ /\/(gc-stats|stats|thread-backtraces)$/ + require 'json' + end + case env['PATH_INFO'] when /\/stop$/ @cli.stop