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

Loading…
Cancel
Save