oohnoitz / jii

file sharing web server
https://0x0.pt
MIT License
37 stars 4 forks source link

text/plain is not kept when the extension is missing #16

Closed RoxasShadow closed 8 years ago

RoxasShadow commented 8 years ago

If I try to upload a text/plain without extension, this line replaces the its mime type to application/octet-stream since the lookup is performed on the file name.

This implies that I cannot read text files on jii but instead I need to download them before.

I actually wanted to open a PR, but then I thought that probably this is a feature rather than a bug. What do you think?

oohnoitz commented 8 years ago

Yeah, it should actually fallback to text/plain in this case. This should be fixed in 72a62464e9fe7955fc43e62738733fe565f9fbd5.

RoxasShadow commented 8 years ago

It is, thanks you.