restpack-web 0.1.38 → 0.1.39
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/restpack-web/app.rb +6 -0
- data/lib/restpack-web/version.rb +1 -1
- metadata +1 -1
data/lib/restpack-web/app.rb
CHANGED
@@ -17,9 +17,15 @@ module RestPack
|
|
17
17
|
|
18
18
|
def call(env)
|
19
19
|
env[:restpack] ||= {}
|
20
|
+
|
20
21
|
begin #TODO: GJ: cache should handle errors gracefully
|
22
|
+
request = Rack::Request.new(env)
|
23
|
+
env[:restpack][:url] = request.url
|
24
|
+
|
21
25
|
host = env["SERVER_NAME"]
|
22
26
|
env[:restpack][:host] = host
|
27
|
+
|
28
|
+
#{request.protocol}#{request.host_with_port}#{request.fullpath}
|
23
29
|
|
24
30
|
channel = @core_cache.get_channel(host)
|
25
31
|
domain = channel.get_domain_by_host(host)
|
data/lib/restpack-web/version.rb
CHANGED