mirror of
https://github.com/kubernetes/client-go.git
synced 2025-08-16 14:26:42 +00:00
Re-run gofmt against staging/src/k8s.io/client-go/transport/
Kubernetes-commit: 1449af17555eb5148d11556ee205c42b83821af0
This commit is contained in:
parent
e87f4d8d19
commit
ef84e47785
@ -24,8 +24,8 @@ import (
|
|||||||
|
|
||||||
"golang.org/x/oauth2"
|
"golang.org/x/oauth2"
|
||||||
|
|
||||||
"k8s.io/klog/v2"
|
|
||||||
utilnet "k8s.io/apimachinery/pkg/util/net"
|
utilnet "k8s.io/apimachinery/pkg/util/net"
|
||||||
|
"k8s.io/klog/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
// HTTPWrappersForConfig wraps a round tripper with any relevant layered
|
// HTTPWrappersForConfig wraps a round tripper with any relevant layered
|
||||||
|
@ -424,15 +424,15 @@ func TestDebuggingRoundTripper(t *testing.T) {
|
|||||||
req := &http.Request{
|
req := &http.Request{
|
||||||
Method: http.MethodGet,
|
Method: http.MethodGet,
|
||||||
Header: map[string][]string{
|
Header: map[string][]string{
|
||||||
"Authorization": []string{"bearer secretauthtoken"},
|
"Authorization": {"bearer secretauthtoken"},
|
||||||
"X-Test-Request": []string{"test"},
|
"X-Test-Request": {"test"},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
res := &http.Response{
|
res := &http.Response{
|
||||||
Status: "OK",
|
Status: "OK",
|
||||||
StatusCode: http.StatusOK,
|
StatusCode: http.StatusOK,
|
||||||
Header: map[string][]string{
|
Header: map[string][]string{
|
||||||
"X-Test-Response": []string{"test"},
|
"X-Test-Response": {"test"},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
tcs := []struct {
|
tcs := []struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user