Skip to content

Commit

Permalink
expandreference in parseXML
Browse files Browse the repository at this point in the history
  • Loading branch information
mtuchi committed Dec 11, 2023
1 parent d3da000 commit 447e5c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/http/src/Adaptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ export function del(path, params, callback) {
*/
export function parseXML(body, script) {
return state => {
const $ = cheerio.load(body);
const resolvedBody = expandReferences(body)(state);
const $ = cheerio.load(resolvedBody);
cheerioTableparser($);

if (script) {
Expand All @@ -322,7 +323,7 @@ export function parseXML(body, script) {
return composeNextState(state, { body: result });
}
} else {
return composeNextState(state, { body: body });
return composeNextState(state, { body: resolvedBody });
}
};
}
Expand Down

0 comments on commit 447e5c7

Please sign in to comment.