From c4c5f1f062b141d0111b4068a52eb5917048b3ea Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Sat, 16 Nov 2019 18:32:52 +0100 Subject: [PATCH] Update github.com/mattn/go-xmlrpc (#1529) Fixes: https://github.com/prometheus/node_exporter/issues/1294 Signed-off-by: Ben Kochie --- go.mod | 2 +- go.sum | 4 ++-- vendor/github.com/mattn/go-xmlrpc/xmlrpc.go | 2 +- vendor/modules.txt | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index 3fc76295..c0ca3228 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/hodgesds/perf-utils v0.0.7 github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect github.com/lufia/iostat v0.0.0-20170605150913-9f7362b77ad3 - github.com/mattn/go-xmlrpc v0.0.1 + github.com/mattn/go-xmlrpc v0.0.3 github.com/mdlayher/genetlink v0.0.0-20190828143517-e35f2bf499b9 // indirect github.com/mdlayher/wifi v0.0.0-20190303161829-b1436901ddee github.com/pkg/errors v0.8.1 diff --git a/go.sum b/go.sum index c111807b..e8a8f943 100644 --- a/go.sum +++ b/go.sum @@ -51,8 +51,8 @@ github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxv github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/lufia/iostat v0.0.0-20170605150913-9f7362b77ad3 h1:XGhvld9vIpj929Gri5ybjukYZeyZwKkFkqgATqBQiOs= github.com/lufia/iostat v0.0.0-20170605150913-9f7362b77ad3/go.mod h1:lRgtFVamD7L7GaXOSwBiuXMwU3Aicfn5h66LVs4u2SA= -github.com/mattn/go-xmlrpc v0.0.1 h1:JY8G+sH4jcjzZvxAY5P+wNrWA2WYC+aK+2bsYOl4z0Q= -github.com/mattn/go-xmlrpc v0.0.1/go.mod h1:mqc2dz7tP5x5BKlCahN/n+hs7OSZKJkS9JsHNBRlrxA= +github.com/mattn/go-xmlrpc v0.0.3 h1:Y6WEMLEsqs3RviBrAa1/7qmbGB7DVD3brZIbqMbQdGY= +github.com/mattn/go-xmlrpc v0.0.3/go.mod h1:mqc2dz7tP5x5BKlCahN/n+hs7OSZKJkS9JsHNBRlrxA= github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= github.com/mdlayher/genetlink v0.0.0-20190828143517-e35f2bf499b9 h1:o+ckyx58UC6Itoo7sEwmXMpHcnI31lRK6w4M5gQMIMw= diff --git a/vendor/github.com/mattn/go-xmlrpc/xmlrpc.go b/vendor/github.com/mattn/go-xmlrpc/xmlrpc.go index b3083c44..b4c0fd03 100644 --- a/vendor/github.com/mattn/go-xmlrpc/xmlrpc.go +++ b/vendor/github.com/mattn/go-xmlrpc/xmlrpc.go @@ -319,7 +319,7 @@ func makeRequest(name string, args ...interface{}) *bytes.Buffer { } func call(client *http.Client, url, name string, args ...interface{}) (v interface{}, e error) { - r, e := httpClient.Post(url, "text/xml", makeRequest(name, args...)) + r, e := client.Post(url, "text/xml", makeRequest(name, args...)) if e != nil { return nil, e } diff --git a/vendor/modules.txt b/vendor/modules.txt index 0e82aef0..484d28b4 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -21,7 +21,7 @@ github.com/hodgesds/perf-utils github.com/konsorten/go-windows-terminal-sequences # github.com/lufia/iostat v0.0.0-20170605150913-9f7362b77ad3 github.com/lufia/iostat -# github.com/mattn/go-xmlrpc v0.0.1 +# github.com/mattn/go-xmlrpc v0.0.3 github.com/mattn/go-xmlrpc # github.com/matttproud/golang_protobuf_extensions v1.0.1 github.com/matttproud/golang_protobuf_extensions/pbutil