Remove the dependency on the CONTENT_TYPE env variable.

The CONTENT_TYPE environment variable may be absent, so don't rely on
it.

Signed-off-by: Xavier Trochu <xavier.trochu@edpsciences.org>