mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-27 13:11:03 +00:00
fix bad res.send
This commit is contained in:
parent
b872fbee32
commit
ef133cbf9a
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue