diff options
Diffstat (limited to 't/write-on-close.ru')
-rw-r--r-- | t/write-on-close.ru | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/t/write-on-close.ru b/t/write-on-close.ru deleted file mode 100644 index 54a2f2e..0000000 --- a/t/write-on-close.ru +++ /dev/null @@ -1,11 +0,0 @@ -class WriteOnClose - def each(&block) - @callback = block - end - - def close - @callback.call "7\r\nGoodbye\r\n0\r\n\r\n" - end -end -use Rack::ContentType, "text/plain" -run(lambda { |_| [ 200, [%w(Transfer-Encoding chunked)], WriteOnClose.new ] }) |