Don't send multiple status codes on insertFile error

This commit is contained in:
James Allen 2015-11-25 16:07:51 +00:00
parent d6b3262ac7
commit bc6c8d6afc

View file

@ -49,7 +49,8 @@ module.exports = FileController =
if err?
logger.log err: err, key: key, bucket: bucket, "error inserting file"
res.send 500
res.send 200
else
res.send 200
copyFile: (req, res)->
metrics.inc "copyFile"