whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] 01/02: handle RACK_BASE_URI not being set
Date Sun, 21 Jan 2018 23:06:09 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git

commit f41386f3c14705b647a7ae7399601e22924e70ec
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Sun Jan 21 18:04:04 2018 -0500

    handle RACK_BASE_URI not being set
---
 www/secretary/workbench/views/index.html.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/secretary/workbench/views/index.html.rb b/www/secretary/workbench/views/index.html.rb
index af8cca3..2e5a5e3 100644
--- a/www/secretary/workbench/views/index.html.rb
+++ b/www/secretary/workbench/views/index.html.rb
@@ -1,5 +1,5 @@
 _html do
-  if ENV["RACK_BASE_URI"] + '/' == _.env['REQUEST_URI']
+  if ENV["RACK_BASE_URI"].to_s + '/' == _.env['REQUEST_URI']
     # not sure why Passenger/rack is eating the trailing slash here.
     # add it back in.
     _base href: _.env['REQUEST_URI']

-- 
To stop receiving notification emails like this one, please contact
"commits@whimsical.apache.org" <commits@whimsical.apache.org>.

Mime
View raw message