From 040c1b716731b8dc7ab6b9c294c436ca39de5005 Mon Sep 17 00:00:00 2001 From: "Chang, Hui-Tang" Date: Thu, 22 Aug 2024 14:49:48 +0800 Subject: [PATCH] fix bug --- plugins/multi-auth/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/multi-auth/main.go b/plugins/multi-auth/main.go index 958da0b..efecc90 100644 --- a/plugins/multi-auth/main.go +++ b/plugins/multi-auth/main.go @@ -112,12 +112,12 @@ func (r registerer) registerHandlers(ctx context.Context, extra map[string]inter // authentication work, we send a request to the management API // first for verification. r, err := http.NewRequest("GET", "http://localhost:8080/v1beta/user", nil) - r.Header = req.Header - r.Header.Del("instill-use-sse") if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) return } + r.Header = req.Header + r.Header.Del("instill-use-sse") resp, err := httpClient.Do(r) if err != nil {