Determine MIME type based on provided file path
Strip trailing whitespace
Merge pull request #1 from ryangreenberg/fix_mime_type

Fix mime type