Permalink
Browse files

Remove GOLIATH_ENV thread local from connection setup,

There is no need to set it here, as it's set later in API class.

See also #279
  • Loading branch information...
1 parent fdbdae4 commit 5a375c18f3f8351eb45939c3735813dee620557f @Juanmcuello Juanmcuello committed Jan 30, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/goliath/connection.rb
@@ -22,7 +22,7 @@ def post_init
@parser = Http::Parser.new
@parser.on_headers_complete = proc do |h|
- env = Thread.current[GOLIATH_ENV] = Goliath::Env.new
+ env = Goliath::Env.new
env[SERVER_PORT] = port.to_s
env[RACK_LOGGER] = logger
env[OPTIONS] = options

0 comments on commit 5a375c1

Please sign in to comment.