fix headers

This commit is contained in:
Nazar Kanaev
2020-07-24 16:17:35 +01:00
parent 3085d6c848
commit 24aa8859b3
2 changed files with 4 additions and 6 deletions

View File

@@ -4,7 +4,7 @@
var api = function(method, endpoint, data) {
return fetch(endpoint, {
method: method,
headers: {'content-type': 'application/json'},
headers: {'Content-Type': 'application/json'},
body: JSON.stringify(data),
})
}