From a163effa6dc9e70857066b63eacaa41024ab46ee Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Tue, 3 Oct 2017 15:22:57 -0700 Subject: [PATCH] Add support for proxy environment variables to http_response (#3302) --- plugins/inputs/http_response/http_response.go | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/inputs/http_response/http_response.go b/plugins/inputs/http_response/http_response.go index 62d6e9ec1..3dd7f9ba5 100644 --- a/plugins/inputs/http_response/http_response.go +++ b/plugins/inputs/http_response/http_response.go @@ -98,6 +98,7 @@ func (h *HTTPResponse) createHttpClient() (*http.Client, error) { } client := &http.Client{ Transport: &http.Transport{ + Proxy: http.ProxyFromEnvironment, DisableKeepAlives: true, TLSClientConfig: tlsCfg, },