don't set contentType for empty body

When content-type is set to a non-standard value,
CORS requires a preflight request that needs to be handled
by the destination server.
We shouldn't require that, when no body is sent at all
and the content-type is irrelevant anyways.
Merge pull request #166 from JonnyJD/simpler-cors

don't set contentType for empty body