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`, { const r = await fetch(`repl/create.json`, {
method: 'POST', method: 'POST',
credentials: 'include', credentials: 'include',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ body: JSON.stringify({
name, name,
files: components.map(component => ({ files: components.map(component => ({

Loading…
Cancel
Save