Explorar el Código

Don't send multiple status codes on insertFile error

James Allen hace 11 años
padre
commit
bc6c8d6afc
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      services/filestore/app/coffee/FileController.coffee

+ 2 - 1
services/filestore/app/coffee/FileController.coffee

@@ -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"