From cd9f2cabb7f637e6f8cf23a3f5bc9d64eea9a431 Mon Sep 17 00:00:00 2001 From: John Beisley Date: Sat, 26 Mar 2022 11:19:07 +0000 Subject: [PATCH] Add type assertion for client.HttpClient. --- v2alpha/soap/client/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/v2alpha/soap/client/client.go b/v2alpha/soap/client/client.go index 8d4ea22..0f373be 100644 --- a/v2alpha/soap/client/client.go +++ b/v2alpha/soap/client/client.go @@ -12,6 +12,8 @@ import ( "github.com/huin/goupnp/v2alpha/soap/envelope" ) +var _ HttpClient = &http.Client{} + // HttpClient defines the interface required of an HTTP client. It is a subset of *http.Client. type HttpClient interface { Do(req *http.Request) (*http.Response, error)