mirror of
https://github.com/trympet/nextcloud-artifacts-action.git
synced 2025-04-24 20:16:08 +02:00
set content type header
This commit is contained in:
parent
a5df11eaca
commit
4ab7fcecfe
3
dist/index.js
vendored
3
dist/index.js
vendored
@ -626,7 +626,8 @@ class NextcloudClient {
|
||||
const res = await node_fetch_1.default(url, {
|
||||
method: 'POST',
|
||||
headers: Object.assign(this.headers, {
|
||||
'OCS-APIRequest': true
|
||||
'OCS-APIRequest': true,
|
||||
'Content-Type': 'application/json'
|
||||
}),
|
||||
body: JSON.stringify(body)
|
||||
});
|
||||
|
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@ -187,7 +187,8 @@ export class NextcloudClient {
|
||||
const res = await fetch(url, {
|
||||
method: 'POST',
|
||||
headers: Object.assign(this.headers, {
|
||||
'OCS-APIRequest': true
|
||||
'OCS-APIRequest': true,
|
||||
'Content-Type': 'application/json'
|
||||
}),
|
||||
body: JSON.stringify(body)
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user