fastify-file-upload
fastify-file-upload copied to clipboard
在 Content-Length 和文件不一致时会引起程序崩溃 Cannot read property 'originalUrl' of null
复现 demo https://github.com/zhongshan1993/fastify-file-error-demo
在 触发 busboy 的 error 事件后,又触发了 finish 事件,导致 middie 中的 done 方法再次被调用,此时 req 的值为 null。
这种场景下,live 环境易收到外部攻击