fix gist saving. 💣

This commit is contained in:
Chris Wanstrath
2011-11-14 11:29:00 -08:00
parent a5e047981c
commit 4e41e89228

View File

@@ -34,6 +34,8 @@ class Gist extends Editor
files = {}
files[@filename] = content: @code()
$.ajax
# Needed for CORS, otherwise we send an unparseable Origin
headers: { origin: null }
url: "https://api.github.com/gists/#{@id}"
type: 'patch'
contentType: 'application/json'