diff --git a/generator/soap.go b/generator/soap.go index 680c350..95ea2df 100644 --- a/generator/soap.go +++ b/generator/soap.go @@ -90,6 +90,7 @@ func (s *SoapClient) Call(soapAction string, request, response interface{}) erro req.Header.Add("SOAPAction", soapAction) } req.Header.Set("User-Agent", "gowsdl/0.1") + req.Close = true tr := &http.Transport{ TLSClientConfig: &tls.Config{