We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abaca49 commit f9245deCopy full SHA for f9245de
packages/core/src/submodules/protocols/xml/AwsRestXmlProtocol.ts
@@ -72,7 +72,9 @@ export class AwsRestXmlProtocol extends HttpBindingProtocol {
72
73
if (request.headers["content-type"] === this.getDefaultContentType()) {
74
if (typeof request.body === "string") {
75
- request.body = '<?xml version="1.0" encoding="UTF-8"?>' + request.body;
+ if (!request.body.startsWith("<?xml ")) {
76
+ request.body = '<?xml version="1.0" encoding="UTF-8"?>' + request.body;
77
+ }
78
}
79
80
0 commit comments