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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aed1b9320e2703e9120167ca13a967a9870bd3dc
4
- data.tar.gz: c543fd0bd77b5752149341788051577a5edd8866
3
+ metadata.gz: 8ad06128651b058d3407c0f9b62d9db22809d819
4
+ data.tar.gz: 5d21ebaabab456c034721e80d3b92a39615bb09e
5
5
  SHA512:
6
- metadata.gz: 545b2f6ccada9f0c86ab02558ff7ded984166b7ee6ebd56b8e5f4cc10082f4e9aa64e8779ad57f14323dc462680624bfaf3749cf9c7144a2005f76b6bdcc75ee
7
- data.tar.gz: b25ed40ed77801d9ad1d9c3594fa5accf263f4f7ab721ee2ca78ec476d8c4540bc458c4e99ace081b00efc8e128ab2e0c7305640275171ca5e2e4e8c87a0d0c5
6
+ metadata.gz: 3114abd2754b1631058e6f98f451506c93a536a22df0485e4b4686ded849489ce3d05ad10ce21371c7ffa85e757894b4a58fdcfae0eee1fa08b3dbfd9c13b47b
7
+ data.tar.gz: 9c738341f864ae1c72c008f14a4909041e61b30ab232b1379b84681ca713ca7b315ebc812b1ce58b745f49559888f0ebdc4ae5e1affc020ba3eab58469c61440
@@ -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}"
@@ -1,3 +1,3 @@
1
1
  module Wovnrb
2
- VERSION = "0.1.24"
2
+ VERSION = "0.1.25"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wovnrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.24
4
+ version: 0.1.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Sandford