aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHenare Degan <henare.degan@gmail.com>2013-03-14 14:36:46 +1100
committerHenare Degan <henare.degan@gmail.com>2013-03-14 14:36:46 +1100
commit3e1b160be7170f2c11e70f975eff1d62233f628d (patch)
tree90351e6aa3bc01c09c676b43fe6e31c35505971c /lib
parentb972eff0b1c50726707e8753675b3b30890157a3 (diff)
Remove Rails 2 patch from 1e958d20f674dabde9e8fc6606edc704d4f93b66
Diffstat (limited to 'lib')
-rw-r--r--lib/cookie_store_with_line_break_fix.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/cookie_store_with_line_break_fix.rb b/lib/cookie_store_with_line_break_fix.rb
deleted file mode 100644
index dc623fbd0..000000000
--- a/lib/cookie_store_with_line_break_fix.rb
+++ /dev/null
@@ -1,19 +0,0 @@
-# See https://makandracards.com/makandra/9443-rails-2-s-cookiestore-produces-invalid-cookie-data-causing-tests-to-break
-
-# Should be able to remove this when we upgrade to Rails 3
-
-module ActionController
- module Session
- CookieStore.class_eval do
-
- def call_with_line_break_fix(*args)
- status, headers, body = call_without_line_break_fix(*args)
- headers['Set-Cookie'].gsub! "\n\n", "\n" if headers['Set-Cookie'].present?
- [ status, headers, body ]
- end
-
- alias_method_chain :call, :line_break_fix
-
- end
- end
-end \ No newline at end of file