1
0
Fork 0

If status 200 is set to no response, imply 204

This commit is contained in:
Alan Plum 2016-01-18 13:39:27 +01:00
parent 1197b6fa22
commit 3b3bfcbd95
No known key found for this signature in database
GPG Key ID: 8ED72A9A323B6EFD
1 changed files with 4 additions and 0 deletions

View File

@ -119,6 +119,10 @@ module.exports = exports = class SwaggerContext {
statusCode = 200;
}
if (type === null) {
if (statusCode === 200) {
this._responses.remove(200);
statusCode = 204;
}
this._responses.set(statusCode, {});
} else {
let contentType = 'application/json; charset=utf-8';