set default mimetype to octet-stream for binary files

mimetype only specified if content=True
Merge pull request #7136 from minrk/octet-stream

set default mimetype to octet-stream for binary files