Skip to content
This repository was archived by the owner on Feb 21, 2019. It is now read-only.
This repository was archived by the owner on Feb 21, 2019. It is now read-only.

req.headers['PATTERN'] is nil #13

@donpdonp

Description

@donpdonp

What is supposed to be in req.headers['PATTERN'] ? My rails app (the typo blog software) displayed the front page fine on the first load, then hitting reload in the browser caused a ruby exception.

/usr/local/ruby/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rack-mongrel2-0.2.3/lib/rack/handler/mongrel2.rb:34:in `run': You have a nil object when you didn't expect it! (NoMethodError)
You might have expected an instance of Array.
The error occurred while evaluating nil.split

34: script_name = ENV['RACK_RELATIVE_URL_ROOT'] || req.headers['PATTERN'].split('(', 2).first.gsub(//$/, '')

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions