Commit 0939cc75 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

Make it work when deployed in a subdir

parent 599f1311
Pipeline #1654 passed with stage
in 42 seconds
......@@ -15,6 +15,10 @@ rt = RT_Client.new(server: settings.rt[:server],
pass: settings.rt[:pass],
cookies: settings.rt[:cookies])
before do
request.path_info = '/'
end
post '/' do # rubocop:disable Metrics/BlockLength
unless settings.token.nil?
halt 403 unless request.env['HTTP_X_GITLAB_TOKEN'] == settings.token
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment