/** * This function resets all environment variables, like headers from old response. * * @author David Pauli <*****@*****.**> * @since 0.2.1 */ public static function resetLastResponse() { self::unsetCookies(); self::$CONTENT = null; self::$CONTENT_TYPE = null; self::$DATE = null; self::$HTTP_RESPONSE_CODE = 0; }