summaryrefslogtreecommitdiffhomepage
path: root/test/ruby/header_custom
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/header_custom')
-rw-r--r--test/ruby/header_custom/config.ru8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ruby/header_custom/config.ru b/test/ruby/header_custom/config.ru
new file mode 100644
index 00000000..8570fd2b
--- /dev/null
+++ b/test/ruby/header_custom/config.ru
@@ -0,0 +1,8 @@
+app = Proc.new do |env|
+ ['200', {
+ 'Content-Length' => '0',
+ 'Custom-Header' => env['rack.input'].read
+ }, []]
+end
+
+run app