postrank-labs/goliath — Issue #125: NoMethodError in lib/goliath/request.rb when $DEBUG=true is set
Author: peterhellberg
Created: 2012-01-05 16:28:05+00:00
State: open

```@env[HTTP_PREFIX + CONNECTION].downcase``` is called in ```lib/goliath/request.rb:227``` even if ```@env[HTTP_PREFIX + CONNECTION]``` is nil.

I saw this when running my code with ```$DEBUG=true``` (Latest Goliath from GitHub)

## Output

Exception `NoMethodError' at /Users/peter/.rvm/gems/ruby-1.9.3-p0@ur-virtual-clips/bundler/gems/goliath-8a1476e0fc22/lib/goliath/request.rb:227 - undefined method `downcase' for nil:NilClass