restpack-web 0.1.46 → 0.1.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
- env[:restpack][:request] = request
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
@@ -1,5 +1,5 @@
1
1
  module RestPack
2
2
  module Web
3
- VERSION = "0.1.46"
3
+ VERSION = "0.1.47"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restpack-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.46
4
+ version: 0.1.47
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: