muffinista / gopher2000

Gopher2000 - world domination via old school protocols
GNU General Public License v3.0
74 stars 4 forks source link

Added MIME based content type detection #2

Closed ntninja closed 10 years ago

ntninja commented 10 years ago

This patch adds automated MIME type detection for all files types using MimeMagic GEM.

These mechanism are tried to detect the file type:

This patch also fixes a bug where the files for the listing where collected using a "." glob pattern which ignored filenames which don't contain a dot.

muffinista commented 10 years ago

Hey, this looks great, but would be up to updating the specs to match your changes?

muffinista commented 10 years ago

Actually, I've got some time, so I'll write the spec. Thanks for the PR!