use sendstatus not send

This commit is contained in:
Henry Oswald 2015-03-03 15:20:05 +00:00
parent a7185c412c
commit 726afb6b90

View file

@ -17,7 +17,7 @@ module.exports = SpellingAPIController =
logger.log token: req?.params?.user_id, word: req?.body?.word, "learning word" logger.log token: req?.params?.user_id, word: req?.body?.word, "learning word"
SpellingAPIManager.learnWord req.params.user_id, req.body, (error, result) -> SpellingAPIManager.learnWord req.params.user_id, req.body, (error, result) ->
return next(error) if error? return next(error) if error?
res.send(200) res.sendStatus(200)
next() next()