avoid warning about setting Content-Type MIME header twice