Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

each_line problem in response.rb

#22

Using thin-0.6.1-x86-mswin32-60 gem:

lib/thin/response.rb - lines 37-41

    def headers=(key_value_pairs)
      key_value_pairs.each do |k, vs|
        vs.each_line { |v| @headers[k] = v.chomp }
      end
    end

gives "Unexpected error while processing request: undefined method `each_line' for []:Array"

Reverting to "each" (from previous mswin32 gem) solves the problem.

Reported by Nathan · January 26th, 2008 @ 07:01 PM

State: resolved
Milestone: 0.6.2
Assigned to: nobody

Activity

  1. macournoyer
    macournoyer
    • State changed from new to open

    Are you having this error running a Rails application?

    January 26th, 2008 @ 10:02 PM

  2. macournoyer
    macournoyer
    • Milestone set to 0.6.2
    • State changed from open to resolved

    That was a fix for Ruby 1.9, I added a condition to still use each under Ruby 1.9.

    Fixed on git.

    thx for reporting this Nathan

    January 27th, 2008 @ 05:17 PM

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.