Skip to content

Commit 77165dc

Browse files
committed
fix(protocol_tests): do not trim values while parsing XML
1 parent 7de6bb5 commit 77165dc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

protocol_tests/aws-ec2/protocols/Aws_ec2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2172,7 +2172,7 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
21722172
ignoreAttributes: false,
21732173
parseNodeValue: false,
21742174
trimValues: false,
2175-
tagValueProcessor: (val, tagName) => (val.trim() === "" ? "" : decodeHTML(val)),
2175+
tagValueProcessor: (val, tagName) => decodeHTML(val),
21762176
});
21772177
const textNodeName = "#text";
21782178
const key = Object.keys(parsedObj)[0];

protocol_tests/aws-query/protocols/Aws_query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3002,7 +3002,7 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
30023002
ignoreAttributes: false,
30033003
parseNodeValue: false,
30043004
trimValues: false,
3005-
tagValueProcessor: (val, tagName) => (val.trim() === "" ? "" : decodeHTML(val)),
3005+
tagValueProcessor: (val, tagName) => decodeHTML(val),
30063006
});
30073007
const textNodeName = "#text";
30083008
const key = Object.keys(parsedObj)[0];

protocol_tests/aws-restxml/protocols/Aws_restXml.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6173,7 +6173,7 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
61736173
ignoreAttributes: false,
61746174
parseNodeValue: false,
61756175
trimValues: false,
6176-
tagValueProcessor: (val, tagName) => (val.trim() === "" ? "" : decodeHTML(val)),
6176+
tagValueProcessor: (val, tagName) => decodeHTML(val),
61776177
});
61786178
const textNodeName = "#text";
61796179
const key = Object.keys(parsedObj)[0];

0 commit comments

Comments
 (0)