summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2022-06-09 14:39:59 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-07-27 12:46:42 +0200
commit9b4b4925b38333b8d7795331d27db9811f43d72a (patch)
tree34213ad5c4a1db77ebdcf531e29bbb338e0a0671 /test
parent91ffd08d119b50d7491827aa6da83006c86076d9 (diff)
downloadunit-9b4b4925b38333b8d7795331d27db9811f43d72a.tar.gz
unit-9b4b4925b38333b8d7795331d27db9811f43d72a.tar.bz2
Ruby: fixed contents of SCRIPT_NAME.
Having the basename of the script pathname was incorrect. While we don't have something more accurate, the best thing to do is to have it empty (which should be the right thing most of the time). This closes #715 issue on GitHub. The bug was introduced in git commit 0032543fa65f454c471c968998190b027c1ff270 'Ruby: added the Rack environment parameter "SCRIPT_NAME".'.
Diffstat (limited to 'test')
-rw-r--r--test/test_ruby_application.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_ruby_application.py b/test/test_ruby_application.py
index 95c75d47..b3e02406 100644
--- a/test/test_ruby_application.py
+++ b/test/test_ruby_application.py
@@ -44,7 +44,7 @@ class TestRubyApplication(TestApplicationRuby):
'Request-Method': 'POST',
'Request-Uri': '/',
'Http-Host': 'localhost',
- 'Script-Name': 'config.ru',
+ 'Script-Name': '',
'Server-Protocol': 'HTTP/1.1',
'Custom-Header': 'blah',
'Rack-Version': '13',