richardgirges / express-fileupload

Simple express file upload middleware that wraps around busboy
MIT License
1.52k stars 259 forks source link

fixed crash when no content-type #366

Closed colinshr closed 7 months ago

colinshr commented 8 months ago

fixed crash when no content-type to replicate just make a request like this, and it will crash curl -v https://example.com/xxx -d '1' -H 'Content-Type:'

coveralls commented 8 months ago

Coverage Status

coverage: 94.311%. remained the same when pulling 1274e7653cd1d8b4c6aadd62786188621ed37b7b on colinshr:master into fbee074bef0c0995aeb54575bdab0b2e2d9d4e72 on richardgirges:master.

RomanBurunkov commented 7 months ago

Thanks, for checking this. It was really helpful.