From 0bdb8204d6237bcfb73dcc4f6bae5fc2a620e82c Mon Sep 17 00:00:00 2001 From: Eryk Kullikowski Date: Sun, 22 Sep 2024 23:07:34 +0200 Subject: [PATCH] simplified code --- authn-env/dvproxy/app/main.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/authn-env/dvproxy/app/main.go b/authn-env/dvproxy/app/main.go index 4e9920917..f178019fe 100644 --- a/authn-env/dvproxy/app/main.go +++ b/authn-env/dvproxy/app/main.go @@ -35,10 +35,7 @@ func main() { } func handle(w http.ResponseWriter, r *http.Request) { - client := api.NewClient(dataverseServer) - client.User = r.Header.Get(userHeader) - client.AdminApiKey = apiKey - client.UnblockKey = unblockKey + client := api.NewUrlSigningClient(dataverseServer, r.Header.Get(userHeader), apiKey, unblockKey) req := client.NewRequest(r.URL.Path, r.Method, r.Body, r.Header) res, err := api.DoStream(r.Context(), req) if err != nil {