From 9e987fdebc126bdc5bfe4ea21f371a1b137ce517 Mon Sep 17 00:00:00 2001 From: TJ Horner Date: Thu, 30 Dec 2021 18:03:29 -0500 Subject: [PATCH] Change JPEG mime type (#2543) --- frigate/http.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frigate/http.py b/frigate/http.py index aceb5f6ae..81f34b37c 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -182,7 +182,7 @@ def event_thumbnail(id): thumbnail_bytes = jpg.tobytes() response = make_response(thumbnail_bytes) - response.headers["Content-Type"] = "image/jpg" + response.headers["Content-Type"] = "image/jpeg" return response @@ -223,7 +223,7 @@ def event_snapshot(id): return "Event not found", 404 response = make_response(jpg_bytes) - response.headers["Content-Type"] = "image/jpg" + response.headers["Content-Type"] = "image/jpeg" if download: response.headers[ "Content-Disposition" @@ -376,7 +376,7 @@ def best(camera_name, label): ".jpg", best_frame, [int(cv2.IMWRITE_JPEG_QUALITY), resize_quality] ) response = make_response(jpg.tobytes()) - response.headers["Content-Type"] = "image/jpg" + response.headers["Content-Type"] = "image/jpeg" return response else: return "Camera named {} not found".format(camera_name), 404 @@ -438,7 +438,7 @@ def latest_frame(camera_name): ".jpg", frame, [int(cv2.IMWRITE_JPEG_QUALITY), resize_quality] ) response = make_response(jpg.tobytes()) - response.headers["Content-Type"] = "image/jpg" + response.headers["Content-Type"] = "image/jpeg" return response else: return "Camera named {} not found".format(camera_name), 404