mirror of https://gitee.com/bigwinds/arangodb
If status 200 is set to no response, imply 204
This commit is contained in:
parent
1197b6fa22
commit
3b3bfcbd95
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue