-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"headers" is nil - crash on request #169
Comments
I'm having a similar error, for this minimal Rack app:
|
I strongly suspect that my problem was caused by bailing out without returning anything, further down in the stack (there's an @wesleysmith12 - I reckon the gem could handle this case more gracefully, but maybe this will help setup a work around for you? |
I'm doing some issue gardening 🌱🌿 🌷 and came upon this issue. Since it's quite old I just wanted to ask if this is still relevant? If it isn't, maybe we can close this issue? By closing some old issues we reduce the list of open issues to a more manageable set. |
Gemfil:
Output (not error happens only after request)
Because I was curious, I looked at the file /home/ubuntu/.rvm/gems/ruby-2.4.1@MYAPP/gems/rack-cors-1.0.2/lib/rack/cors.rb:114:in `call':
Line 114 is:
vary = headers[VARY]
Not sure why that wouldn't be set, but I'm getting an error cause of it.
The text was updated successfully, but these errors were encountered: