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.
1 parent 0995b0e commit 32b754fCopy full SHA for 32b754f
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