File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -888,11 +888,13 @@ function! s:GistGetAuthHeader() abort
888
888
let v: errmsg = ' Canceled'
889
889
return ' '
890
890
endif
891
+ let note = " Gist.vim on " .hostname ()
892
+ let note_url " http://www.vim.org/scripts/script.php?script_id=2423"
891
893
let insecureSecret = printf (" basic %s" , webapi#base64#b64encode (g: github_user ." :" .password))
892
894
let res = webapi#http#post (g: gist_api_url .' authorizations' , webapi#json#encode ({
893
895
\ " scopes" : [" gist" ],
894
- \ " note" : " Gist.vim on " . hostname () ,
895
- \ " note_url" : " http://www.vim.org/scripts/script.php?script_id=2423 "
896
+ \ " note" : note ,
897
+ \ " note_url" : note_url,
896
898
\} ), {
897
899
\ " Content-Type" : " application/json" ,
898
900
\ " Authorization" : insecureSecret,
@@ -906,8 +908,8 @@ function! s:GistGetAuthHeader() abort
906
908
endif
907
909
let res = webapi#http#post (g: gist_api_url .' authorizations' , webapi#json#encode ({
908
910
\ " scopes" : [" gist" ],
909
- \ " note" : " Gist.vim on " . hostname (). ' - ' . localtime () ,
910
- \ " note_url" : " http://www.vim.org/scripts/script.php?script_id=2423 "
911
+ \ " note" : note ,
912
+ \ " note_url" : note_url,
911
913
\} ), {
912
914
\ " Content-Type" : " application/json" ,
913
915
\ " Authorization" : insecureSecret,
You can’t perform that action at this time.
0 commit comments