Skip to content

Commit

Permalink
fix: fix bcsapi client Authorization, issue TencentBlueKing#427
Browse files Browse the repository at this point in the history
  • Loading branch information
DeveloperJim committed Apr 26, 2020
1 parent 3248533 commit 3e1eb42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bcs-common/pkg/bcsapi/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func configureRequest(r *gorequest.SuperAgent, config *Config) *gorequest.SuperA
r.TLSClientConfig(config.TLSConfig)
}
if config.AuthToken != "" {
r.Set("Authentication", fmt.Sprintf("Bearer %s", config.AuthToken))
r.Set("Authorization", fmt.Sprintf("Bearer %s", config.AuthToken))
}
if config.ClusterID != "" {
r.Set(clusterIDHeader, config.ClusterID)
Expand Down

0 comments on commit 3e1eb42

Please sign in to comment.