Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 5a375c18f3f8351eb45939c3735813dee620557f 1 parent fdbdae4
Juan M. Cuello Juanmcuello authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/goliath/connection.rb
2  lib/goliath/connection.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.