From d8237236d8b89fed5daab6c04c555996ddd9db36 Mon Sep 17 00:00:00 2001 From: Huin Date: Sun, 5 Jan 2014 22:41:51 +0000 Subject: [PATCH] Check for error when encoding the request action. --- soap/soap.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/soap/soap.go b/soap/soap.go index 8dd0a87..9c56e02 100644 --- a/soap/soap.go +++ b/soap/soap.go @@ -31,6 +31,9 @@ func NewSOAPClient(endpointURL url.URL) *SOAPClient { // PerformSOAPAction makes a SOAP request, with the given action. func (client *SOAPClient) PerformAction(actionNamespace, actionName string, inAction interface{}, outAction interface{}) error { requestBytes, err := encodeRequestAction(inAction) + if err != nil { + return err + } response, err := client.HTTPClient.Do(&http.Request{ Method: "POST",