wovnrb 0.1.33 → 0.1.34
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 +1 -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: f1b46f0a69ecda1a25ab851087513fa8adb3b2aa
|
4
|
+
data.tar.gz: 96b0db1ea685275c83d518091dfcf84ee2de829b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8220dd5c6277bffe8d23472622cdb453355c54743666d70a6a991ab078fca8c93b1fabe91cd51b096827d2c786e303b6bd829d00d34367512aa3bfc387421144
|
7
|
+
data.tar.gz: d571f5645debbe415f0767a987de1c0c1ac18711647112e3e719ed4ee5db52d81addc7257de45625ae6c6f67b5fb6dd423511b48956ebd8a3ee6cacebfba6676
|
data/lib/wovnrb/headers.rb
CHANGED
@@ -16,7 +16,7 @@ module Wovnrb
|
|
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'] = (@
|
19
|
+
@env['REQUEST_URI'] = (@env['PATH_INFO'] =~ /^[^\/]/ ? '/' : '') + @env['PATH_INFO'] + (@env['QUERY_STRING'].size == 0 ? '' : "?#{@env['QUERY_STRING']}")
|
20
20
|
end
|
21
21
|
# REQUEST_URI is expected to not contain the server name
|
22
22
|
# heroku contains http://...
|
data/lib/wovnrb/version.rb
CHANGED