summaryrefslogtreecommitdiffhomepage
path: root/test/ruby/hooks/config.ru
diff options
context:
space:
mode:
authorOisin Canty <o.canty@f5.com>2021-07-02 13:00:57 +0000
committerOisin Canty <o.canty@f5.com>2021-07-02 13:00:57 +0000
commit8c83652c2a0ad7386e27a9ea595c996d3dce018c (patch)
tree154281c0fc0216f5588f6a9c7f96a79c500737a5 /test/ruby/hooks/config.ru
parent6c14d5d7b1921bd78f2d1b7458eae7d97eee0fcd (diff)
downloadunit-8c83652c2a0ad7386e27a9ea595c996d3dce018c.tar.gz
unit-8c83652c2a0ad7386e27a9ea595c996d3dce018c.tar.bz2
Tests: Ruby hooks.
Diffstat (limited to 'test/ruby/hooks/config.ru')
-rw-r--r--test/ruby/hooks/config.ru7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ruby/hooks/config.ru b/test/ruby/hooks/config.ru
new file mode 100644
index 00000000..f3069558
--- /dev/null
+++ b/test/ruby/hooks/config.ru
@@ -0,0 +1,7 @@
+app = Proc.new do |env|
+ ['200', {
+ 'Content-Length' => '0'
+ }, ['']]
+end
+
+run app