Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e7a4eb commit e927072Copy full SHA for e927072
src/Plugins/ImageProcessor.Web/ImageProcessor.Web.Plugins.AzureBlobCache/AzureBlobCache.cs
@@ -381,11 +381,12 @@ public override void RewritePath(HttpContext context)
381
{
382
HttpResponse contextResponse = context.Response;
383
cachedStream.CopyTo(contextResponse.OutputStream);
384
+ string contentType = response.ContentType;
385
386
// Mimetype can be null when returning from the cache.
387
ImageProcessingModule.SetHeaders(
388
context,
- string.IsNullOrWhiteSpace(this.mimeType) ? contextResponse.ContentType : this.mimeType,
389
+ string.IsNullOrWhiteSpace(contentType) ? "image/xyz" : contentType,
390
null,
391
this.MaxDays,
392
response.StatusCode);
0 commit comments