fix headers
This commit is contained in:
parent
3085d6c848
commit
24aa8859b3
2 changed files with 4 additions and 6 deletions
|
|
@ -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),
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue