#22 ✓resolved
Nathan

each_line problem in response.rb

Reported by Nathan | January 26th, 2008 @ 07:01 PM | 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 January 26th, 2008 @ 10:02 PM

    • State changed from “new” to “open”

    Are you having this error running a Rails application?

  • Nathan

    Nathan January 27th, 2008 @ 12:02 AM

    No, just testing a basic camping app with this:

    require 'rubygems'

    require 'thin'

    require 'camping'

    require 'my_camping_app'

    Rack::Handler::Thin.run Rack::Adapter::Camping.new(MyCampingApp)

  • macournoyer

    macournoyer January 27th, 2008 @ 05:17 PM

    • 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