We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3e696e4 + 32b754f commit 85cb74cCopy full SHA for 85cb74c
server.js
@@ -44,7 +44,7 @@ var server = http.createServer((req,res) => {
44
if(query.xmlToJSON === 'true') {
45
body = xml2json.toJson(body);
46
}
47
- if(response.statusCode === 200) {
+ if(response && response.statusCode === 200) {
48
res.writeHead(200);
49
res.end(body);
50
0 commit comments