Skip to content

Commit

Permalink
Merge pull request #8 from Rchristiani/master
Browse files Browse the repository at this point in the history
Addtion to server.js file
  • Loading branch information
Ryan Christiani authored Oct 26, 2016
2 parents 3e696e4 + 32b754f commit 85cb74c
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 85cb74c

Please sign in to comment.