restpack-web 0.1.46 → 0.1.47
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/restpack-web/app.rb +4 -7
- data/lib/restpack-web/version.rb +1 -1
- metadata +1 -1
data/lib/restpack-web/app.rb
CHANGED
@@ -20,14 +20,11 @@ module RestPack
|
|
20
20
|
|
21
21
|
begin #TODO: GJ: cache should handle errors gracefully
|
22
22
|
request = Rack::Request.new(env)
|
23
|
-
|
24
|
-
|
25
|
-
host = env["SERVER_NAME"]
|
26
|
-
env[:restpack][:host] = host
|
27
|
-
|
28
|
-
channel = @core_cache.get_channel(host)
|
29
|
-
domain = channel.get_domain_by_host(host)
|
23
|
+
channel = @core_cache.get_channel(request.host)
|
24
|
+
domain = channel.get_domain_by_host(request.host)
|
30
25
|
|
26
|
+
env[:restpack][:request] = request
|
27
|
+
env[:restpack][:host] = request.host
|
31
28
|
env[:restpack][:channel] = channel
|
32
29
|
env[:restpack][:application] = domain.application
|
33
30
|
env[:restpack][:domain] = domain
|
data/lib/restpack-web/version.rb
CHANGED