forked from loafle/openapi-generator-original
fix(codegen, nodejs-server): correct reponse.end (#6301)
Don't send code with response.end because it's already set in writeHead. Fixes #6292
This commit is contained in:
parent
3ecc374682
commit
4457361c56
@ -39,5 +39,5 @@ var writeJson = exports.writeJson = function(response, arg1, arg2) {
|
|||||||
payload = JSON.stringify(payload, null, 2);
|
payload = JSON.stringify(payload, null, 2);
|
||||||
}
|
}
|
||||||
response.writeHead(code, {'Content-Type': 'application/json'});
|
response.writeHead(code, {'Content-Type': 'application/json'});
|
||||||
response.end(payload, code);
|
response.end(payload);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user