aboutsummaryrefslogtreecommitdiffstats
path: root/lib/whatdotheyknow/strip_empty_sessions.rb
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2011-07-26 17:33:18 +0100
committerSeb Bacon <seb.bacon@gmail.com>2011-07-27 08:50:27 +0100
commitd27cfb74d683104d4ce898639b47238d4dbcc544 (patch)
tree068cae061f8e874b98e50e4f6b673f89ed5156b9 /lib/whatdotheyknow/strip_empty_sessions.rb
parent67829b434b56b60fa281b8a147003d86e28c074a (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.rb2
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