Skip to content

Commit

Permalink
Change JPEG mime type (#2543)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhorner authored and blakeblackshear committed Feb 19, 2022
1 parent e6292c7 commit 9e987fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frigate/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9e987fd

Please sign in to comment.