Skip to content
Snippets Groups Projects
Commit 0939cc75 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

Make it work when deployed in a subdir

parent 599f1311
No related branches found
No related tags found
No related merge requests found
Pipeline #1654 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment