From e69d32ff558e73fcc2f9c2aef3e436fbe91e2bec Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Sat, 17 Aug 2024 13:52:59 -0500 Subject: [PATCH] Disable session 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