mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 08:31:43 +03:00
5a8145139a
fix https://linear.app/tryghost/issue/SLO-95/unexpected-end-of-multipart-data-for-broken-image-upload-request - in the event the client sends an invalid body to the image or media upload endpoints, Dicer will throw an error if the boundary data is malformed - previously, we've just been bubbling that up as an InternalServerError and that results in an HTTP 500 - we can capture errors produced by dicer and return a handled BadRequestError, as it's the client's fault - also includes breaking tests |
||
---|---|---|
.. | ||
admin | ||
content | ||
members | ||
members-comments | ||
shared | ||
webmentions |