umbraco / Umbraco.StorageProviders

MIT License
29 stars 21 forks source link

Correctly parse ETag value, path, access conditions and use HeaderNames constants #39

Closed ronaldbarendse closed 2 years ago

ronaldbarendse commented 2 years ago

This fixes https://github.com/umbraco/Umbraco.StorageProviders/issues/37 by using EntityTagHeaderValue.TryParse() to parse the ETag value returned by Azure Blob Storage.

I've also cleaned up related code in the middleware, so the remaining path (everything after the root path) is directly retrieved from the StartsWithSegments() call, dates are correctly parsed and header names are using the constant values.