diff --git a/services/web/app/coffee/Features/Spelling/SpellingController.coffee b/services/web/app/coffee/Features/Spelling/SpellingController.coffee index f87504e5d0..3ac130fb08 100644 --- a/services/web/app/coffee/Features/Spelling/SpellingController.coffee +++ b/services/web/app/coffee/Features/Spelling/SpellingController.coffee @@ -8,7 +8,7 @@ module.exports = SpellingController = url = "/user/#{req.session.user._id}#{url}" req.headers["Host"] = Settings.apis.spelling.host getReq = request(url: Settings.apis.spelling.url + url, method: req.method, headers: req.headers, json: req.body) - getReq.pipe(res) getReq.on "error", (error) -> logger.error err: error, "Spelling API error" res.sendStatus 500 + getReq.pipe(res)