also include content-type header for PATCH to update existing REPL

pull/6811/head
Conduitry 5 years ago
parent 45344bbd38
commit 0042737b64

@ -101,6 +101,9 @@
const r = await fetch(`repl/${gist.uid}.json`, { const r = await fetch(`repl/${gist.uid}.json`, {
method: 'PATCH', method: 'PATCH',
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