File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -108,14 +108,11 @@ type ClientConfig struct {
108
108
func NewDefaultClientConfig () ClientConfig {
109
109
// The default values are taken from the values of 'DefaultTransport' of 'http' package.
110
110
111
- // Configure with the non-nil map value.
112
- headers := make (map [string ]configopaque.String )
113
-
114
111
maxIdleConns := 100
115
112
idleConnTimeout := 90 * time .Second
116
113
117
114
return ClientConfig {
118
- Headers : headers ,
115
+ Headers : make ( map [ string ]configopaque. String ) ,
119
116
MaxIdleConns : & maxIdleConns ,
120
117
IdleConnTimeout : & idleConnTimeout ,
121
118
}
@@ -293,11 +290,9 @@ type ServerConfig struct {
293
290
294
291
// NewDefaultServerConfig creates new ServerConfig with default values set
295
292
func NewDefaultServerConfig () ServerConfig {
296
- // Create a new map for ResponseHeaders
297
- responseHeaders := make (map [string ]configopaque.String )
298
293
299
294
return ServerConfig {
300
- ResponseHeaders : responseHeaders ,
295
+ ResponseHeaders : make ( map [ string ]configopaque. String ) ,
301
296
}
302
297
}
303
298
You can’t perform that action at this time.
0 commit comments