restpack-web 0.1.38 → 0.1.39

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.
@@ -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)
@@ -1,5 +1,5 @@
1
1
  module RestPack
2
2
  module Web
3
- VERSION = "0.1.38"
3
+ VERSION = "0.1.39"
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.38
4
+ version: 0.1.39
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: