set content-type header on request

pull/6811/head
Ben McCann 5 years ago
parent d860721571
commit 0b5616b874

@ -43,6 +43,9 @@
const r = await fetch(`repl/create.json`, {
method: 'POST',
credentials: 'include',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
name,
files: components.map(component => ({

Loading…
Cancel
Save