Skip to content

Commit e6159b8

Browse files
committed
Corrects the comments
1 parent 2e65160 commit e6159b8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/gitlab/backend/grack_auth.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ def call(env)
99
@request = Rack::Request.new(env)
1010
@auth = Request.new(env)
1111

12+
# Need this patch due to the rails mount
13+
14+
# Need this if under RELATIVE_URL_ROOT
1215
unless Gitlab.config.gitlab.relative_url_root.empty?
13-
#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
1417
@env['PATH_INFO'] = @request.path.sub(Gitlab.config.gitlab.relative_url_root,'')
1518
else
1619
@env['PATH_INFO'] = @request.path
1720
end
1821

19-
# Need this patch due to the rails mount
2022
@env['SCRIPT_NAME'] = ""
2123

2224
return render_not_found unless project

0 commit comments

Comments
 (0)