Skip to content

Commit

Permalink
Merge pull request #86 from pydsigner/GH-84_server_mimetypes
Browse files Browse the repository at this point in the history
GH-84: Enable guessing non-strict MIME types in development server
  • Loading branch information
pydsigner authored Dec 30, 2023
2 parents 216644e + db108cf commit 9759662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/anchovy/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def do_GET(self):
self.end_headers()
else:
# Get the file extension and set the MIME type accordingly
mime_type, _enc = mimetypes.guess_type(file_path)
mime_type, _enc = mimetypes.guess_type(file_path, strict=False)
self.send_response(200)
self.send_header('Content-type', mime_type or DEFAULT_MIME_TYPE)
self.send_header('ETag', etag)
Expand Down

0 comments on commit 9759662

Please sign in to comment.