Skip to content

Commit 43f0db5

Browse files
committed
set http_headers to be omit empty
Signed-off-by: Ben Ye <[email protected]>
1 parent e5fa530 commit 43f0db5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/http_config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ type HTTPClientConfig struct {
323323
ProxyConfig `yaml:",inline"`
324324
// HTTPHeaders specify headers to inject in the requests. Those headers
325325
// could be marshalled back to the users.
326-
HTTPHeaders *Headers `yaml:"http_headers" json:"http_headers"`
326+
HTTPHeaders *Headers `yaml:"http_headers,omitempty" json:"http_headers,omitempty"`
327327
}
328328

329329
// SetDirectory joins any relative file paths with dir.

0 commit comments

Comments
 (0)