debian-mirror-gitlab/spec/rack_servers/configs/config.ru

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
222 B
Text
Raw Normal View History

2018-12-13 13:39:08 +05:30
# frozen_string_literal: true
app = proc do |env|
if env['REQUEST_METHOD'] == 'GET'
2023-01-13 00:05:48 +05:30
[200, {}, [Process.pid.to_s]]
2018-12-13 13:39:08 +05:30
else
Process.kill(env['QUERY_STRING'], Process.pid)
[200, {}, ['Bye!']]
end
end
run app