Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
donch1989 committed Aug 22, 2024
1 parent 0732219 commit 040c1b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/multi-auth/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 040c1b7

Please sign in to comment.