From 6aaa52e89d7ab11975e41fc0d6c467c4df76ebed Mon Sep 17 00:00:00 2001 From: iNF3Rnus Date: Fri, 8 Mar 2024 16:58:48 -0500 Subject: [PATCH 1/2] Use rules.payload when extracting data for event stream --- lib/protocol/rest_json.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/protocol/rest_json.js b/lib/protocol/rest_json.js index d43f2632fb..045c6eafd9 100644 --- a/lib/protocol/rest_json.js +++ b/lib/protocol/rest_json.js @@ -1,3 +1,4 @@ +var AWS = require('../core'); var util = require('../util'); var Rest = require('./rest'); var Json = require('./json'); @@ -75,7 +76,7 @@ function extractData(resp) { var body = resp.httpResponse.body; if (payloadMember.isEventStream) { parser = new JsonParser(); - resp.data[payload] = util.createEventStream( + resp.data[rules.payload] = util.createEventStream( AWS.HttpClient.streamsApiVersion === 2 ? resp.httpResponse.stream : body, parser, payloadMember From 635f9f9c380dda0e908efb735e4568fae5c29645 Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Thu, 23 May 2024 08:46:57 -0700 Subject: [PATCH 2/2] chore: npm run add-change --- .changes/next-release/bugfix-rest-json-7a3f1db2.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changes/next-release/bugfix-rest-json-7a3f1db2.json diff --git a/.changes/next-release/bugfix-rest-json-7a3f1db2.json b/.changes/next-release/bugfix-rest-json-7a3f1db2.json new file mode 100644 index 0000000000..d5cfdfe906 --- /dev/null +++ b/.changes/next-release/bugfix-rest-json-7a3f1db2.json @@ -0,0 +1,5 @@ +{ + "type": "bugfix", + "category": "rest-json", + "description": "use rules.payload when extracting data for event stream" +} \ No newline at end of file