mirror of
https://github.com/nkanaev/yarr.git
synced 2025-09-13 09:55:36 +00:00
fix headers
This commit is contained in:
@@ -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),
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user