soap: quote action names in header
The unquoted form is not accepted by some implementations.
This commit is contained in:
parent
2230083611
commit
5528f2eeef
@ -42,7 +42,7 @@ func (client *SOAPClient) PerformAction(actionNamespace, actionName string, inAc
|
|||||||
Method: "POST",
|
Method: "POST",
|
||||||
URL: &client.EndpointURL,
|
URL: &client.EndpointURL,
|
||||||
Header: http.Header{
|
Header: http.Header{
|
||||||
"SOAPACTION": []string{actionNamespace + "#" + actionName},
|
"SOAPACTION": []string{`"` + actionNamespace + "#" + actionName + `"`},
|
||||||
"CONTENT-TYPE": []string{"text/xml; charset=\"utf-8\""},
|
"CONTENT-TYPE": []string{"text/xml; charset=\"utf-8\""},
|
||||||
},
|
},
|
||||||
Body: ioutil.NopCloser(bytes.NewBuffer(requestBytes)),
|
Body: ioutil.NopCloser(bytes.NewBuffer(requestBytes)),
|
||||||
|
Loading…
Reference in New Issue
Block a user