Skip to content

Commit 96c2db6

Browse files
authored
Merge pull request spawnrider#3 from tfsoares/master
Add HTTP status code to the response message
2 parents 19817e2 + 2568782 commit 96c2db6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

www-request.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ module.exports = function (RED) {
136136
} else {
137137
msg.payload = body;
138138
msg.headers = response.headers;
139+
msg.statusCode = response.statusCode;
139140
if (node.metric()) {
140141
// Calculate request time
141142
var diff = process.hrtime(preRequestTimestamp);

0 commit comments

Comments
 (0)