Deliver empty JSON object on success
This ensures the client does not throw a parsing exception
This commit is contained in:
committed by
Girish Ramakrishnan
parent
8e123b017e
commit
4781c4e364
@@ -149,7 +149,7 @@ function setCatchAllAddress(req, res, next) {
|
||||
if (error && error.reason === SettingsError.BAD_FIELD) return next(new HttpError(400, error.message));
|
||||
if (error) return next(new HttpError(500, error));
|
||||
|
||||
next(new HttpSuccess(200));
|
||||
next(new HttpSuccess(200, {}));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user