wovnrb 0.1.20 → 0.1.21
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 +2 -1
- data/lib/wovnrb/railtie.rb +2 -1
- 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: 9ccc000747a89ade64da214a8fcefa23b92ec0dd
|
4
|
+
data.tar.gz: 98ad02f1de5af58fbe0981ce66fe7015b30151df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2df0d360922dc4ce790cbbe80e22439e7d4aec06ed8578e5043d588b690a4ae00405ab8019859574cccab5c708a71609874f43525dbfdce28fdadda3f123096b
|
7
|
+
data.tar.gz: e56873280f0a49416f7495cfdc53950b61f0e14551eee3ccb5ceb1491e986f67705e7d85ab5bcd3d918136bf4accab72aa4086668751967572db7a10f0e29b02
|
data/lib/wovnrb/headers.rb
CHANGED
@@ -15,7 +15,8 @@ module Wovnrb
|
|
15
15
|
@protocol = @env['rack.url_scheme']
|
16
16
|
@unmasked_host = @env['HTTP_HOST']
|
17
17
|
unless @env.has_key?('REQUEST_URI')
|
18
|
-
|
18
|
+
# Add '/' to PATH_INFO as a possible fix for pow server
|
19
|
+
@env['REQUEST_URI'] = (@env_['PATH_INFO'] =~ /^[^\/]/ ? '/' : '') + @env['PATH_INFO'] + (@env['QUERY_STRING'].size == 0 ? '' : "?#{@env['QUERY_STRING']}")
|
19
20
|
end
|
20
21
|
@unmasked_pathname = @env['REQUEST_URI'].split('?')[0]
|
21
22
|
@unmasked_pathname += '/' unless @unmasked_pathname =~ /\/$/ || @unmasked_pathname =~ /\/[^\/.]+\.[^\/.]+$/
|
data/lib/wovnrb/railtie.rb
CHANGED
@@ -2,7 +2,8 @@ module Wovnrb
|
|
2
2
|
|
3
3
|
class Railtie < Rails::Railtie
|
4
4
|
initializer 'wovnrb.configure_rails_initialization' do |app|
|
5
|
-
app.middleware.insert_before(0, Wovnrb::Interceptor)
|
5
|
+
#app.middleware.insert_before(0, Wovnrb::Interceptor)
|
6
|
+
app.middleware.insert_before(Rack::Lock, Wovnrb::Interceptor)
|
6
7
|
|
7
8
|
#if Rails.env.development? && config.respond_to?(:wovnrb)
|
8
9
|
# config.after_initialize do
|
data/lib/wovnrb/version.rb
CHANGED