| ... | ... | @@ -15,7 +15,15 @@ module Grack |
|
|
|
@auth = Request.new(env)
|
|
|
|
|
|
|
|
# Need this patch due to the rails mount
|
|
|
|
|
|
|
|
# Need this if under RELATIVE_URL_ROOT
|
|
|
|
unless Gitlab.config.gitlab.relative_url_root.empty?
|
|
|
|
# If website is mounted using relative_url_root need to remove it first
|
|
|
|
@env['PATH_INFO'] = @request.path.sub(Gitlab.config.gitlab.relative_url_root,'')
|
|
|
|
else
|
|
|
|
@env['PATH_INFO'] = @request.path
|
|
|
|
end
|
|
|
|
|
|
|
|
@env['SCRIPT_NAME'] = ""
|
|
|
|
|
|
|
|
auth!
|
| ... | ... | |
| ... | ... | |