Skip to content

Commit 7cc718a

Browse files
committed
add support for request headers to to cli also
1 parent 10b9990 commit 7cc718a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/flowtest-cli/graph/compute/requestnode.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@ class requestNode extends Node {
117117
}
118118
}
119119

120+
if (this.nodeData.headers && this.nodeData.headers.length > 0) {
121+
this.nodeData.headers.map((pair, index) => {
122+
headers[pair.name] = pair.value;
123+
});
124+
}
125+
120126
const options = {
121127
method: restMethod,
122128
url: finalUrl,

0 commit comments

Comments
 (0)