Procházet zdrojové kódy

use sendstatus not send

Henry Oswald před 11 roky
rodič
revize
726afb6b90

+ 1 - 1
services/spelling/app/coffee/SpellingAPIController.coffee

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