Skip to content

Commit

Permalink
fix(codegen, nodejs-server): correct reponse.end (#6301)
Browse files Browse the repository at this point in the history
Don't send code with response.end because it's already set in writeHead.

Fixes #6292
  • Loading branch information
sandro97git authored and wing328 committed Aug 25, 2017
1 parent 3ecc374 commit 4457361
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -39,5 +39,5 @@ var writeJson = exports.writeJson = function(response, arg1, arg2) {
payload = JSON.stringify(payload, null, 2);
}
response.writeHead(code, {'Content-Type': 'application/json'});
response.end(payload, code);
}
response.end(payload);
}

0 comments on commit 4457361

Please sign in to comment.