Deliver empty JSON object on success

This ensures the client does not throw a parsing exception
This commit is contained in:
Johannes Zellner
2017-06-12 13:19:39 +02:00
committed by Girish Ramakrishnan
parent 8e123b017e
commit 4781c4e364

View File

@@ -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, {}));
});
}