Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions database/tiny/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class DatabaseController {
method: 'post',
body: JSON.stringify(query),
headers: {
'Content-Type': 'application/json; charset=utf-8'
'Content-Type': 'application/ld+json; charset=utf-8'
}
})
.then(resp => {
Expand Down Expand Up @@ -129,7 +129,7 @@ class DatabaseController {
method: 'post',
body: JSON.stringify(data),
headers: {
'Content-Type': 'application/json; charset=utf-8'
'Content-Type': 'application/ld+json; charset=utf-8'
}
})
.then(resp => {
Expand Down Expand Up @@ -160,7 +160,7 @@ class DatabaseController {
method: 'put',
body: JSON.stringify(data),
headers: {
'Content-Type': 'application/json; charset=utf-8'
'Content-Type': 'application/ld+json; charset=utf-8'
}
})
.then(resp => {
Expand Down Expand Up @@ -190,7 +190,7 @@ class DatabaseController {
err_out._dbaction = this.URLS.OVERWRITE

const headers = {
'Content-Type': 'application/json; charset=utf-8'
'Content-Type': 'application/ld+json; charset=utf-8'
}

// Add optimistic locking header if __rerum.isOverwritten exists
Expand Down Expand Up @@ -255,7 +255,7 @@ class DatabaseController {
method: 'delete',
body: JSON.stringify(data),
headers: {
'Content-Type': 'application/json; charset=utf-8'
'Content-Type': 'application/ld+json; charset=utf-8'
}
})
.then(resp => {
Expand Down