Skip to content

Commit

Permalink
Addtion to server.js file
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Christiani committed Oct 26, 2016
1 parent 0995b0e commit 32b754f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var server = http.createServer((req,res) => {
if(query.xmlToJSON === 'true') {
body = xml2json.toJson(body);
}
if(response.statusCode === 200) {
if(response && response.statusCode === 200) {
res.writeHead(200);
res.end(body);
}
Expand Down

0 comments on commit 32b754f

Please sign in to comment.