See #2409: Avoid overwriting global $_SERVER and set Content-Type to protected property;