diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-07-26 17:33:18 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-07-27 09:00:00 +0100 |
commit | cace286e2d92ad50c4253c5765055e9da4da3871 (patch) | |
tree | ee46aafe1905ca6ca7e9fa4c145f2363904f1559 /lib/whatdotheyknow/strip_empty_sessions.rb | |
parent | 000b14b71c9dfb7b545240d8ca7ac19cae424a99 (diff) |
include "locale" in list of session data keys that are used to decide if a rails session cookie is redundant for the purposes of this request. Fixes #91
Diffstat (limited to 'lib/whatdotheyknow/strip_empty_sessions.rb')
-rw-r--r-- | lib/whatdotheyknow/strip_empty_sessions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/whatdotheyknow/strip_empty_sessions.rb b/lib/whatdotheyknow/strip_empty_sessions.rb index 9c87a4bbc..e162acf67 100644 --- a/lib/whatdotheyknow/strip_empty_sessions.rb +++ b/lib/whatdotheyknow/strip_empty_sessions.rb @@ -3,7 +3,7 @@ module WhatDoTheyKnow class StripEmptySessions ENV_SESSION_KEY = "rack.session".freeze HTTP_SET_COOKIE = "Set-Cookie".freeze - STRIPPABLE_KEYS = [:session_id, :_csrf_token] + STRIPPABLE_KEYS = [:session_id, :_csrf_token, :locale] def initialize(app, options = {}) @app = app |