#22 ✓resolved
Nathan

each_line problem in response.rb

Reported by Nathan | 2008-01-26 19:01:22 UTC | in 0.6.2

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.

Comments and changes to this ticket

  • macournoyer

    macournoyer 2008-01-26 22:02:17 UTC

    • State changed from “new” to “open”

    Are you having this error running a Rails application?

  • macournoyer

    macournoyer 2008-01-27 17:17:53 UTC

    • 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

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Pages