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