From 83a615247239f49b05c473a88a2e6fe9e98bf673 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Sat, 17 Aug 2024 13:52:59 -0500 Subject: [PATCH] Disable sessions for endpoints that do not require them --- app.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app.rb b/app.rb index 8aec6d7..910bb1e 100644 --- a/app.rb +++ b/app.rb @@ -206,6 +206,7 @@ before do # content_type 'text/plain' sleep(1) while Sleep.instance.asleep? && request.path_info != "/livez/sleep" content_type :text if request.path_info.start_with? "/_cat" + request.session_options[:skip] = !request.path_info.start_with?("/session") end get "/" do