wovnrb 0.1.05 → 0.1.06
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wovnrb.rb +0 -3
- data/lib/wovnrb/headers.rb +1 -0
- data/lib/wovnrb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d39285c61e8aa9426346c05698a1cfe538321a6d
|
4
|
+
data.tar.gz: 32f0cb826db8a89d383882e7381f1f5221eb87e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f44c73927ebc8a95dc682d9d35bd571f961f468eefb323c773be14f0efd0f817e6d42c344aedf5008575caa8acc128cad02d7ca457d2c196de5b05274c797a2a
|
7
|
+
data.tar.gz: c30d10c7319548ba0056c1c51cb4b5da781ad1da6744880718b67621a215888e70032eb0f34a1ff8f4bf642cb21e9adbb7637fe4968cf4f957f6f27d40c6aa69
|
data/lib/wovnrb.rb
CHANGED
@@ -17,9 +17,6 @@ module Wovnrb
|
|
17
17
|
|
18
18
|
def call(env)
|
19
19
|
@env = env
|
20
|
-
Rails.logger.info(@env.to_s)
|
21
|
-
[status, res_headers, [@env.to_s]]
|
22
|
-
return
|
23
20
|
STORE.refresh_settings
|
24
21
|
headers = Headers.new(env, STORE.settings)
|
25
22
|
if ((headers.path_lang != '' && !STORE.settings['supported_langs'].include?(headers.path_lang)) || headers.path_lang == STORE.settings['default_lang'])
|
data/lib/wovnrb/headers.rb
CHANGED
@@ -14,6 +14,7 @@ module Wovnrb
|
|
14
14
|
@env = env
|
15
15
|
@protocol = @env['rack.url_scheme']
|
16
16
|
@unmasked_host = @env['HTTP_HOST']
|
17
|
+
@env['REQUEST_URI'] = @env['PATH_INFO'] + (@env['QUERY_STRING'].size == 0 ? '' : "?#{@env['QUERY_STRING']}" unless @env['REQUEST_URI']
|
17
18
|
@unmasked_pathname = @env['REQUEST_URI'].split('?')[0]
|
18
19
|
@unmasked_pathname += '/' unless @unmasked_pathname =~ /\/$/ || @unmasked_pathname =~ /\/[^\/.]+\.[^\/.]+$/
|
19
20
|
@unmasked_url = "#{@protocol}://#{@unmasked_host}#{@unmasked_pathname}"
|
data/lib/wovnrb/version.rb
CHANGED