wovnrb 0.1.24 → 0.1.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wovnrb/headers.rb +3 -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: 8ad06128651b058d3407c0f9b62d9db22809d819
|
4
|
+
data.tar.gz: 5d21ebaabab456c034721e80d3b92a39615bb09e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3114abd2754b1631058e6f98f451506c93a536a22df0485e4b4686ded849489ce3d05ad10ce21371c7ffa85e757894b4a58fdcfae0eee1fa08b3dbfd9c13b47b
|
7
|
+
data.tar.gz: 9c738341f864ae1c72c008f14a4909041e61b30ab232b1379b84681ca713ca7b315ebc812b1ce58b745f49559888f0ebdc4ae5e1affc020ba3eab58469c61440
|
data/lib/wovnrb/headers.rb
CHANGED
@@ -18,6 +18,9 @@ module Wovnrb
|
|
18
18
|
# Add '/' to PATH_INFO as a possible fix for pow server
|
19
19
|
@env['REQUEST_URI'] = (@env_['PATH_INFO'] =~ /^[^\/]/ ? '/' : '') + @env['PATH_INFO'] + (@env['QUERY_STRING'].size == 0 ? '' : "?#{@env['QUERY_STRING']}")
|
20
20
|
end
|
21
|
+
if @env['REQUEST_URI'] =~ /:\/\//
|
22
|
+
@env['REQUEST_URI'] = @env['REQUEST_URI'].sub(/^.*:\/\/[^\/]+/, '')
|
23
|
+
end
|
21
24
|
@unmasked_pathname = @env['REQUEST_URI'].split('?')[0]
|
22
25
|
@unmasked_pathname += '/' unless @unmasked_pathname =~ /\/$/ || @unmasked_pathname =~ /\/[^\/.]+\.[^\/.]+$/
|
23
26
|
@unmasked_url = "#{@protocol}://#{@unmasked_host}#{@unmasked_pathname}"
|
data/lib/wovnrb/version.rb
CHANGED