From f20ddcd500ae5100f7adccb36a5e65139f603061 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Fri, 5 Jul 2024 16:06:15 -0500 Subject: [PATCH] Add hostname to session JSON output --- app.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app.rb b/app.rb index 77fb14e..8c432f0 100644 --- a/app.rb +++ b/app.rb @@ -329,7 +329,9 @@ post "/session" do end get "/session" do - json session.to_hash + j = session.to_hash + j[:hostname] = ENV['hostname'] + json j end get "/cookies" do