diff options
author | Eric Wong <e@80x24.org> | 2018-09-18 23:52:14 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2018-09-18 23:52:14 +0000 |
commit | c93a392385e7fe1ca3bf86cabe04f7591cef1a58 (patch) | |
tree | 6c5f31ec9cadd643fdc3dc645f9b225d44901227 /t/t0301.ru | |
parent | 47fddb53aa0b7763f353ba515cf3fb5b2059f4f7 (diff) | |
download | unicorn-c93a392385e7fe1ca3bf86cabe04f7591cef1a58.tar.gz |
Continue to make it easy to migrate AWAY from unicorn because vendor lock-in is the worst thing, especially if it's on us.
Diffstat (limited to 't/t0301.ru')
-rw-r--r-- | t/t0301.ru | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/t/t0301.ru b/t/t0301.ru new file mode 100644 index 0000000..1ae8ea7 --- /dev/null +++ b/t/t0301.ru @@ -0,0 +1,13 @@ +#\-N --debug +run(lambda do |env| + case env['PATH_INFO'] + when '/vars' + b = "debug=#{$DEBUG.inspect}\n" \ + "lint=#{caller.grep(%r{rack/lint\.rb})[0].split(':')[0]}\n" + end + h = { + 'Content-Length' => b.size.to_s, + 'Content-Type' => 'text/plain', + } + [ 200, h, [ b ] ] +end) |