File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ func ClientWithUserAgent(ua string) ClientOpt {
41
41
}
42
42
}
43
43
44
- // ClientWithHeaders specifies the HTTP header for the client.
45
- func ClientWithHeaders (key , value string ) ClientOpt {
44
+ // ClientWithHeader adds an HTTP header to the client.
45
+ func ClientWithHeader (key , value string ) ClientOpt {
46
46
return func (c * client ) {
47
47
if c .headers == nil {
48
48
c .headers = map [string ]string {}
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ func TestClientHeader(t *testing.T) {
126
126
testClient := s .Client ()
127
127
tc .host = s .URL
128
128
r := & cmds.Request {Path : tc .path , Command : & cmds.Command {}, Root : & cmds.Command {}}
129
- c := NewClient (tc .host , ClientWithHeaders (tc .header , tc .value )).(* client )
129
+ c := NewClient (tc .host , ClientWithHeader (tc .header , tc .value )).(* client )
130
130
c .httpClient = testClient
131
131
c .send (r )
132
132
You can’t perform that action at this time.
0 commit comments