debian-mirror-gitlab/spec/rack_servers/configs/config.ru
2023-01-12 18:35:48 +00:00

12 lines
222 B
Ruby

# frozen_string_literal: true
app = proc do |env|
if env['REQUEST_METHOD'] == 'GET'
[200, {}, [Process.pid.to_s]]
else
Process.kill(env['QUERY_STRING'], Process.pid)
[200, {}, ['Bye!']]
end
end
run app