From acd022cf4143e0065e1032f668b4736f390873b6 Mon Sep 17 00:00:00 2001 From: Damien Ostler Date: Fri, 1 Mar 2024 18:35:07 -0500 Subject: [PATCH] Revert "fix" This reverts commit 9767743d8302cebeb33f85bcf6603a85b22c0d07. --- src/comissions.app.api/Controllers/ArtistRequestsController.cs | 2 +- src/comissions.app.api/Controllers/ArtistReviewsController.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/comissions.app.api/Controllers/ArtistRequestsController.cs b/src/comissions.app.api/Controllers/ArtistRequestsController.cs index be4037a..87fa342 100644 --- a/src/comissions.app.api/Controllers/ArtistRequestsController.cs +++ b/src/comissions.app.api/Controllers/ArtistRequestsController.cs @@ -86,7 +86,7 @@ public class ArtistRequestsController: Controller if(reference==null) return NotFound(); var content = await _storageService.DownloadImageAsync(reference.FileReference); - return new FileStreamResult(content, "image/*"); + return new FileStreamResult(content, "application/octet-stream"); } [HttpGet] diff --git a/src/comissions.app.api/Controllers/ArtistReviewsController.cs b/src/comissions.app.api/Controllers/ArtistReviewsController.cs index e050faf..b2de271 100644 --- a/src/comissions.app.api/Controllers/ArtistReviewsController.cs +++ b/src/comissions.app.api/Controllers/ArtistReviewsController.cs @@ -51,7 +51,7 @@ public class ArtistReviewsController: Controller return Ok(result); } - + [HttpGet] [Authorize("read:artist")] [Route("Reviews/Count")]