fix double res.send error on incorrect header file upload