From 5528f2eeefbf6c791bf10f576c9a7b16b077dae9 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 13 Feb 2015 11:35:15 +0100 Subject: [PATCH] soap: quote action names in header The unquoted form is not accepted by some implementations. --- soap/soap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soap/soap.go b/soap/soap.go index 33cbe28..8156107 100644 --- a/soap/soap.go +++ b/soap/soap.go @@ -42,7 +42,7 @@ func (client *SOAPClient) PerformAction(actionNamespace, actionName string, inAc Method: "POST", URL: &client.EndpointURL, Header: http.Header{ - "SOAPACTION": []string{actionNamespace + "#" + actionName}, + "SOAPACTION": []string{`"` + actionNamespace + "#" + actionName + `"`}, "CONTENT-TYPE": []string{"text/xml; charset=\"utf-8\""}, }, Body: ioutil.NopCloser(bytes.NewBuffer(requestBytes)),