mirror of
https://github.com/trympet/nextcloud-artifacts-action.git
synced 2026-08-24 08:41:07 +02:00
set content type header
This commit is contained in:
Vendored
+2
-1
@@ -626,7 +626,8 @@ class NextcloudClient {
|
|||||||
const res = await node_fetch_1.default(url, {
|
const res = await node_fetch_1.default(url, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: Object.assign(this.headers, {
|
headers: Object.assign(this.headers, {
|
||||||
'OCS-APIRequest': true
|
'OCS-APIRequest': true,
|
||||||
|
'Content-Type': 'application/json'
|
||||||
}),
|
}),
|
||||||
body: JSON.stringify(body)
|
body: JSON.stringify(body)
|
||||||
});
|
});
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -187,7 +187,8 @@ export class NextcloudClient {
|
|||||||
const res = await fetch(url, {
|
const res = await fetch(url, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: Object.assign(this.headers, {
|
headers: Object.assign(this.headers, {
|
||||||
'OCS-APIRequest': true
|
'OCS-APIRequest': true,
|
||||||
|
'Content-Type': 'application/json'
|
||||||
}),
|
}),
|
||||||
body: JSON.stringify(body)
|
body: JSON.stringify(body)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user