expose rack env if requested
All checks were successful
Ruby Lint / lint (push) Successful in 22s
Ruby Test / test (push) Successful in 14s

This commit is contained in:
2025-06-27 18:50:51 -05:00
parent 98404feb96
commit e62812226c

8
app.rb
View File

@ -444,7 +444,13 @@ end
get "/_cat/env" do
stream do |out|
ENV.sort.each do |k, v|
e = if params.key? :rack
env
else
ENV
end
e.sort.each do |k, v|
out << "#{k}=#{v}\n"
end
end