summaryrefslogtreecommitdiffhomepage
path: root/test/ruby/errors_write/config.ru
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/ruby/errors_write/config.ru6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/errors_write/config.ru b/test/ruby/errors_write/config.ru
new file mode 100644
index 00000000..47619d6b
--- /dev/null
+++ b/test/ruby/errors_write/config.ru
@@ -0,0 +1,6 @@
+app = Proc.new do |env|
+ env['rack.errors'].write('Error in application')
+ ['200', {'Content-Length' => '0'}, ['']]
+end
+
+run app