X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6e1c29f2530ff36892ebe64a81e3d962766763de..8d24a8224decd26726dcfdeb239df4e12bd0d315:/services/arv-git-httpd/auth_handler.go diff --git a/services/arv-git-httpd/auth_handler.go b/services/arv-git-httpd/auth_handler.go index 31865011b7..7a2841f49a 100644 --- a/services/arv-git-httpd/auth_handler.go +++ b/services/arv-git-httpd/auth_handler.go @@ -1,3 +1,7 @@ +// Copyright (C) The Arvados Authors. All rights reserved. +// +// SPDX-License-Identifier: AGPL-3.0 + package main import ( @@ -20,8 +24,12 @@ type authHandler struct { } func (h *authHandler) setup() { - os.Setenv("ARVADOS_API_HOST", theConfig.Client.APIHost) - h.clientPool = arvadosclient.MakeClientPool() + ac, err := arvadosclient.New(&theConfig.Client) + if err != nil { + log.Fatal(err) + } + h.clientPool = &arvadosclient.ClientPool{Prototype: ac} + log.Printf("%+v", h.clientPool.Prototype) } func (h *authHandler) ServeHTTP(wOrig http.ResponseWriter, r *http.Request) {