Skip to content

Commit 6a142b0

Browse files
authored
Merge pull request #44 from ccremer/patch-header
Fix content-type header for PATCH requests
2 parents 69a5f28 + 7a662a0 commit 6a142b0

File tree

1 file changed

+1
-1
lines changed
  • packages/kubernetes-client/src/fetch

1 file changed

+1
-1
lines changed

packages/kubernetes-client/src/fetch/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export class FetchClient implements Client {
144144
body: body,
145145
method: method,
146146
headers: {
147-
'Content-Type': method === 'PATCH' ? 'application/strategic-merge-patch+json' : 'application/json',
147+
'Content-Type': method === 'PATCH' ? 'application/merge-patch+json' : 'application/json',
148148
},
149149
}
150150
const initWithAuth = this.authorizer.applyAuthorization(init)

0 commit comments

Comments
 (0)