adele/ergol
2
2
Fork
You've already forked ergol
1

.gmi files get sent as text/html when they contain some html markup #9

Open
opened 2023年02月17日 01:16:43 +01:00 by alexlehm · 0 comments
Contributor
Copy link

The mime type is determined with mime_content_type and then if the type is text/plain it is checked for the file extension .gmi and .md. This is wrong if the mime magic thinks the file is text/html and it is a .gmi file that contains some html markup.

Not sure exactly how to fix that, probably the extension has to be checked before using mime magic

The mime type is determined with mime_content_type and then if the type is text/plain it is checked for the file extension .gmi and .md. This is wrong if the mime magic thinks the file is text/html and it is a .gmi file that contains some html markup. Not sure exactly how to fix that, probably the extension has to be checked before using mime magic
Sign in to join this conversation.
No Branch/Tag specified
main
No results found.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
adele/ergol#9
Reference in a new issue
adele/ergol
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?