add V1Patch for patch custom obj (#530)

This commit is contained in:
Boshi Lian
2020-11-25 08:14:39 -08:00
committed by GitHub
parent 3fd47e5644
commit 8bbf1476c2

View File

@@ -13,6 +13,11 @@ namespace k8s
throw new ArgumentNullException(nameof(body));
}
if (body is V1Patch patch)
{
return GetHeader(patch);
}
return MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
}