lib/goliath/connection.rb in goliath-1.0.3 vs lib/goliath/connection.rb in goliath-1.0.4
- old
+ new
@@ -20,10 +20,10 @@
@requests = []
@pending = []
@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
env[STATUS] = status
env[CONFIG] = config