fix bad res.send

This commit is contained in:
Henry Oswald 2016-03-01 13:22:51 +00:00
parent b872fbee32
commit ef133cbf9a

View file

@ -10,8 +10,7 @@ module.exports = SpellingAPIController =
if error?
logger.err err:error, user_id:req?.params?.user_id, word_count: req?.body?.words?.length, "error processing spelling request"
return res.sendStatus(500)
# res.send(result)
res.writeHead 200
res.send(result)
learn: (req, res, next) ->
metrics.inc "spelling-learn", 0.1