/** * Get or set the pending `Content-Type` header (with `nosniff`). * @param string $type * @return string|null */ public static function type($type = null) { if (isset($type)) { self::$headers['Content-Type'] = $type; self::$headers['X-Content-Type-Options'] = 'nosniff'; return $type; } return X::elem(self::$headers, 'Content-Type'); }