Read error: #<NoMethodError: private method `split' called for 0:Fixnum>
Reported by James Cook | June 12th, 2009 @ 02:34 AM
Setting the value of a header to a Fixnum throws "Read error:
#<NoMethodError: private method split' called for
0:Fixnum>" @ line 68 in /rack/handler/mongrel.rb
If I coerce the value to string in that loop, all is good.
More detail .. in the ApplicationController for one of my projects I have a method that sets a bunch of headers to prevent browser caching. In one header, I set 'Expire' to 0 (Fixnum).
Comments and changes to this ticket
-
Ryan Tomayko June 12th, 2009 @ 03:18 AM
Header values must be strings, per the rack spec. You'll need to #to_s your Fixnums on the way in.
-
josh August 3rd, 2009 @ 04:03 PM
- State changed from new to wontfix
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป