diff options
Diffstat (limited to 'test/ruby/at_exit/config.ru')
-rw-r--r-- | test/ruby/at_exit/config.ru | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ruby/at_exit/config.ru b/test/ruby/at_exit/config.ru new file mode 100644 index 00000000..0e2c40c6 --- /dev/null +++ b/test/ruby/at_exit/config.ru @@ -0,0 +1,8 @@ +app = Proc.new do |env| + at_exit do + env['rack.errors'].puts('At exit called.') + end + ['200', {'Content-Length' => '0'}, ['']] +end + +run app |