umbraco / Umbraco.StorageProviders

MIT License
29 stars 21 forks source link

Allow other middlewares to handle requests when file isn't found on Blob #8

Closed vsilvar closed 3 years ago

vsilvar commented 3 years ago

Currently when the middleware is called and a file can't be found in blob storage, it immediately returns a 404. This short circuits the request pipeline and prevents any other middleware further down the chain the handle it.

With the proposed change when a file can't be found, we simply proceed and call the next middleware in the chain.

rasmusjp commented 3 years ago

Hi @vsilvar

Thanks for the PR, this makes total sense. I'll get it merged