summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/ruby/variables/config.ru1
-rw-r--r--test/test_ruby_application.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/variables/config.ru b/test/ruby/variables/config.ru
index 55d01796..e335e049 100644
--- a/test/ruby/variables/config.ru
+++ b/test/ruby/variables/config.ru
@@ -8,6 +8,7 @@ app = Proc.new do |env|
'Request-Method' => env['REQUEST_METHOD'],
'Request-Uri' => env['REQUEST_URI'],
'Http-Host' => env['HTTP_HOST'],
+ 'Script-Name' => env['SCRIPT_NAME'],
'Server-Protocol' => env['SERVER_PROTOCOL'],
'Server-Software' => env['SERVER_SOFTWARE'],
'Custom-Header' => env['HTTP_CUSTOM_HEADER'],
diff --git a/test/test_ruby_application.py b/test/test_ruby_application.py
index 319dfb4f..c2931e65 100644
--- a/test/test_ruby_application.py
+++ b/test/test_ruby_application.py
@@ -44,6 +44,7 @@ class TestRubyApplication(TestApplicationRuby):
'Request-Method': 'POST',
'Request-Uri': '/',
'Http-Host': 'localhost',
+ 'Script-Name': 'config.ru',
'Server-Protocol': 'HTTP/1.1',
'Custom-Header': 'blah',
'Rack-Version': '13',