You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2019/04/26 11:57:13 UTC
[whimsy] branch master updated: pretty up, filter, racktest output
This is an automated email from the ASF dual-hosted git repository.
rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 2262e4e pretty up, filter, racktest output
2262e4e is described below
commit 2262e4e033629363a4e05b588aeb5b32d7a2c51f
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Fri Apr 26 07:56:55 2019 -0400
pretty up, filter, racktest output
---
www/racktest/config.ru | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/www/racktest/config.ru b/www/racktest/config.ru
index 373c732..900ef0f 100644
--- a/www/racktest/config.ru
+++ b/www/racktest/config.ru
@@ -1 +1,9 @@
-run lambda {|env| [200, {'Content-Type' => 'text/plain'}, [env.inspect]]}
+require 'json'
+
+run lambda {|env|
+ env = env.to_a.sort.to_h
+ env.delete('PASSENGER_CONNECT_PASSWORD')
+ env.delete('SECRET_KEY_BASE')
+
+ [ 200, {'Content-Type' => 'text/plain'}, [JSON.pretty_generate(env)] ]
+}