Use setContentType instead of setHeader (fix for old versions of Apache2)