Skip to content

Commit

Permalink
??? traefik pls
Browse files Browse the repository at this point in the history
  • Loading branch information
1lann committed Jan 5, 2024
1 parent 413c733 commit bbeef50
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions mini.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,16 @@ func NewMini(config MiniConfig, next CaddyHandleFunc) (*Tmpauth, error) {
doneOnce: sync.Once{},
}

transport := &MiniTransport{
base: http.DefaultTransport,
tmpauth: t,
}

t.miniClient = &http.Client{
CheckRedirect: func(req *http.Request, via []*http.Request) error {
return http.ErrUseLastResponse
},
Transport: &MiniTransport{
base: http.DefaultTransport,
tmpauth: t,
},
Transport: transport,
}

return t, nil
Expand Down

0 comments on commit bbeef50

Please sign in to comment.