Revert "There's no need to specify MIME types"

This reverts commit 8a30948e961578ef4585666fd39add4f37bcbdd0.

Setting mime types is necessary indeed, as without it no correct
'Content-Type' header is set.