Skip to content

Commit 53013d2

Browse files
committed
Allow token to be empty if bearer is provided
1 parent 3c8709a commit 53013d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/agenthttp/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (t authenticatedTransport) RoundTrip(req *http.Request) (*http.Response, er
3636
}()
3737
}
3838

39-
if t.Token == "" {
39+
if t.Token == "" && t.Bearer == "" {
4040
return nil, fmt.Errorf("Invalid token, empty string supplied")
4141
}
4242

0 commit comments

Comments
 (0)