We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1364d6 commit 92cc44aCopy full SHA for 92cc44a
autoload/gist.vim
@@ -815,13 +815,12 @@ function! s:GistGetAuthHeader()
815
\ "Content-Type" : "application/json",
816
\ "Authorization" : insecureSecret,
817
\})
818
- let h = filter(res.header, 'v:val =~ "^X-GitHub-OTP: require"')
+ let h = filter(res.header, 'stridx(v:val, "X-GitHub-OTP:") == 0')
819
if len(h)
820
let otp = inputsecret("OTP:")
821
if len(otp) == 0
822
- let secret = ''
823
let v:errmsg = 'Canceled'
824
- return secrert
+ return ''
825
endif
826
let res = webapi#http#post(g:github_api_url.'/authorizations', webapi#json#encode({
827
\ "scopes" : ["gist"],
0 commit comments