You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2018/01/21 23:06:09 UTC

[whimsy] 01/02: handle RACK_BASE_URI not being set

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 <ru...@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" <co...@whimsical.apache.org>.