soap: quote action names in header

The unquoted form is not accepted by some implementations.
This commit is contained in:
Felix Lange 2015-02-13 11:35:15 +01:00
parent 2230083611
commit 5528f2eeef

View File

@ -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)),