Skip to content

Does default mimetype should not be "text/plain"? #108

Description

@Godzil

Wouldn't be better to use a mime type like "application/octet-stream" than "text/plain" for unknown types?

if mt[ext] then return mt[ext] else return "text/plain" end

I know that we are not going to serve really complicated thing with this server, but if the file is not text we will probably get corrupted data as the browser will expect 7bit ASCII

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions