Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix deleting gist. close #99

  • Loading branch information...
commit 3e02137acd8c9fd5235b9afeae8a7675296aef77 1 parent a2e317a
@mattn authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 autoload/gist.vim
View
5 autoload/gist.vim
@@ -1,7 +1,7 @@
"=============================================================================
" File: gist.vim
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
-" Last Change: 29-Jun-2012.
+" Last Change: 03-Jul-2012.
" Version: 6.7
" WebPage: http://github.com/mattn/gist-vim
" License: BSD
@@ -321,8 +321,7 @@ endfunction
function! s:GistDelete(gistid)
redraw | echon 'Deleting gist... '
- let res = webapi#http#post('https://api.github.com/gists/'.a:gistid, '',
- \ webapi#json#encode(gist), {
+ let res = webapi#http#post('https://api.github.com/gists/'.a:gistid, '', {
\ "Authorization": s:GetAuthHeader(),
\ "Content-Type": "application/json",
\}, 'DELETE')
Please sign in to comment.
Something went wrong with that request. Please try again.