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

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

Open
donpdonp opened this issue Aug 22, 2011 · 2 comments
Open

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

donpdonp opened this issue Aug 22, 2011 · 2 comments
Labels

Comments

@donpdonp
Copy link

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(//$/, '')

@darkhelmet
Copy link
Owner

That should be the pattern that mongrel uses to match the route. I'll investigate.

@darkhelmet
Copy link
Owner

I just got a thing from the mailing list about this. Apparently it's something in M2. Waiting to see what the list replies with.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants