aboutsummaryrefslogtreecommitdiffstats
path: root/lib/whatdotheyknow/strip_empty_sessions.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-11-13 14:36:00 +0000
committerLouise Crow <louise.crow@gmail.com>2013-11-19 15:01:52 +0000
commitb2dcbc96b7c295b8bc6714c09352e0b02b28e881 (patch)
tree425c121bac63f0b00ffb7da353d3a486f5ba3a1a /lib/whatdotheyknow/strip_empty_sessions.rb
parente52624209435219baa7bca617ade3e6c011ee938 (diff)
Session keys are stored as strings in Rails 3.0.15.0.1hotfix/0.15.0.1
Update our session-stripping code.
Diffstat (limited to 'lib/whatdotheyknow/strip_empty_sessions.rb')
-rw-r--r--lib/whatdotheyknow/strip_empty_sessions.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/whatdotheyknow/strip_empty_sessions.rb b/lib/whatdotheyknow/strip_empty_sessions.rb
index e162acf67..6d175ca98 100644
--- a/lib/whatdotheyknow/strip_empty_sessions.rb
+++ b/lib/whatdotheyknow/strip_empty_sessions.rb
@@ -1,9 +1,9 @@
module WhatDoTheyKnow
-
+
class StripEmptySessions
ENV_SESSION_KEY = "rack.session".freeze
HTTP_SET_COOKIE = "Set-Cookie".freeze
- STRIPPABLE_KEYS = [:session_id, :_csrf_token, :locale]
+ STRIPPABLE_KEYS = ['session_id', '_csrf_token', 'locale']
def initialize(app, options = {})
@app = app