We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e65160 commit e6159b8Copy full SHA for e6159b8
lib/gitlab/backend/grack_auth.rb
@@ -9,14 +9,16 @@ def call(env)
9
@request = Rack::Request.new(env)
10
@auth = Request.new(env)
11
12
+ # Need this patch due to the rails mount
13
+
14
+ # Need this if under RELATIVE_URL_ROOT
15
unless Gitlab.config.gitlab.relative_url_root.empty?
- #if website is mounted using relative_url_root need to remove it first
16
+ # If website is mounted using relative_url_root need to remove it first
17
@env['PATH_INFO'] = @request.path.sub(Gitlab.config.gitlab.relative_url_root,'')
18
else
19
@env['PATH_INFO'] = @request.path
20
end
21
- # Need this patch due to the rails mount
22
@env['SCRIPT_NAME'] = ""
23
24
return render_not_found unless project
0 commit comments