Skip to content

Commit

Permalink
close tikv#4490: fix transport and change component key
Browse files Browse the repository at this point in the history
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
  • Loading branch information
CabinfeverB committed Dec 28, 2021
1 parent dd588bb commit 118c5f6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apiutil/apiutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var (
=======
// ComponentSignatureKey is used for http request header key
// to identify component signature
ComponentSignatureKey = "ti-component"
ComponentSignatureKey = "component"
// ComponentAnonymousValue identify anonymous request source
ComponentAnonymousValue = "anonymous"
>>>>>>> baa5163b (close #4490: add teset)
Expand Down
8 changes: 8 additions & 0 deletions tools/pd-ctl/pdctl/command/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,17 @@ import (
)

var (
<<<<<<< HEAD
pdControllerComponentName = "pdctl"
dialClient = &http.Client{
Transport: apiutil.NewComponentSignatureRoundTripper(http.DefaultTransport, &pdControllerComponentName),
=======
dialClient = &http.Client{
Transport: &apiutil.UserSignatureRoundTripper{
Component: "pdctl",
Proxied: http.DefaultTransport,
},
>>>>>>> 377c854c (close #4490: fix transport and change component key)
}
pingPrefix = "pd/api/v1/ping"
)
Expand Down

0 comments on commit 118c5f6

Please sign in to comment.