From b6f05b475f7d38d593ff578850a34648c10a11a4 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Sun, 11 Aug 2024 11:13:14 -0500 Subject: [PATCH] Add /_cat/cookies --- app.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app.rb b/app.rb index 482ecd8..8fdcc12 100644 --- a/app.rb +++ b/app.rb @@ -347,3 +347,11 @@ get "/_cat/env" do end end end + +get "/_cat/cookies" do + stream do |out| + cookies.each do |k, v| + out << "#{k}=#{v}\n" + end + end +end