fix random freezes

This commit is contained in:
Spirtix 2023-07-07 17:58:33 +02:00
parent 9cef74dd26
commit 535cfc418c
2 changed files with 2 additions and 2 deletions

View File

@ -662,7 +662,7 @@ public class ContentController : Controller {
return null;
}
string imageUrl = string.Format("{0}://{1}/RawImage/{2}/{3}/{4}", HttpContext.Request.Scheme, HttpContext.Request.Host, viking.Id, ImageType, ImageSlot);
string imageUrl = string.Format("{0}://{1}/RawImage/{2}/{3}/{4}.jpg", HttpContext.Request.Scheme, HttpContext.Request.Host, viking.Id, ImageType, ImageSlot);
return new ImageData {
ImageURL = imageUrl,

View File

@ -20,7 +20,7 @@ public class ImageController : Controller {
// SetImage and GetImage are defined in ContentController
[HttpGet]
[Route("RawImage/{VikingId}/{ImageType}/{ImageSlot}")]
[Route("RawImage/{VikingId}/{ImageType}/{ImageSlot}.jpg")]
public IActionResult RawImage(String VikingId, String ImageType, int ImageSlot) {
Image? image = ctx.Images.FirstOrDefault(e => e.VikingId == VikingId && e.ImageType == ImageType && e.ImageSlot == ImageSlot);
if (image is null) {