Skip to content

Commit

Permalink
Validate HTTP headers
Browse files Browse the repository at this point in the history
  • Loading branch information
ptodev committed Feb 26, 2025
1 parent 9d76a62 commit c667866
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/component/common/config/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ func (h *HTTPClientConfig) Validate() error {
h.BearerTokenFile = ""
}

if err := h.HTTPHeaders.Validate(); err != nil {
return err
}

return h.ProxyConfig.Validate()
}

Expand Down

0 comments on commit c667866

Please sign in to comment.