Explicitly set mimetype (flask issue #670)