Skip to content

Commit

Permalink
Merge pull request #293 from NishantPhour/master
Browse files Browse the repository at this point in the history
Upper case extension fix
  • Loading branch information
xzzy authored Nov 4, 2024
2 parents 9b6a304 + ec66a69 commit 26e0cf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wildlifecompliance/management/securebase_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def get_http_response_for_wildlifelicensing(self):
document = self.request.user.identification2
mime = mimetypes.guess_type(document.upload.path)[0]

if document and document.extension == ".heic":
if document and document.extension.lower() == ".heic":
mime = "image/heic"
response = HttpResponse(content_type=mime)
response.write(document.upload.read())
Expand All @@ -281,7 +281,7 @@ def get_http_response_for_wildlifelicensing(self):
document = customer.identification2
mime = mimetypes.guess_type(document.upload.path)[0]

if document and document.extension == ".heic":
if document and document.extension.lower() == ".heic":
mime = "image/heic"
response = HttpResponse(content_type=mime)
response.write(document.upload.read())
Expand Down

0 comments on commit 26e0cf5

Please sign in to comment.