Disable sessions for endpoints that do not require them
This commit is contained in:
parent
ac5f98d865
commit
83a6152472
1
app.rb
1
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
|
||||
|
Loading…
Reference in New Issue
Block a user