Skip to content

Commit 8bbf147

Browse files
authored
add V1Patch for patch custom obj (#530)
1 parent 3fd47e5 commit 8bbf147

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/KubernetesClient/Kubernetes.Header.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ public virtual MediaTypeHeaderValue GetHeader(object body)
1313
throw new ArgumentNullException(nameof(body));
1414
}
1515

16+
if (body is V1Patch patch)
17+
{
18+
return GetHeader(patch);
19+
}
20+
1621
return MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
1722
}
1823

0 commit comments

Comments
 (0)