Skip to content
Snippets Groups Projects
Commit 6912f21e authored by GitLab's avatar GitLab
Browse files

Send GL_ID to gitlab-git-http-server as JSON

parent ae9e5eea
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -181,11 +181,12 @@ module Grack
 
def render_grack_auth_ok
if @user.present?
body = Gitlab::ShellEnv.gl_id(@user)
gl_id = Gitlab::ShellEnv.gl_id(@user)
else
body = ''
gl_id = ''
end
[200, { "Content-Type" => "text/plain" }, [body]]
[200, { "Content-Type" => "application/json" }, [JSON.dump({'GL_ID' => gl_id})]]
end
 
def render_not_found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment