Open ichizok opened 3 years ago
Vim-gista fails edit action.
+python3
+python
:Gista list and select gist.
:Gista list
vim-gista: 0:
As far as I confirmed, since api.github.com returns HTTP/2 responses, Vim-gista fails to parse response headers.
https://github.com/lambdalisue/vim-gista/blob/master/autoload/vital/_vim_gista/Web/HTTP.vim#L209
Here checks HTTP/1\.\d\s then cannot handle HTTP/2, so fail to parse status;
HTTP/1\.\d\s
https://github.com/lambdalisue/vim-gista/blob/master/autoload/gista/resource/remote.vim#L46-L48
res.status is always 0, an exception is thrown.
res.status
Thanks for the issue report but please see https://github.com/lambdalisue/vim-gista/issues/89
Vim-gista fails edit action.
Conditions
+python3
and without+python
Repro steps
:Gista list
and select gist.Details
As far as I confirmed, since api.github.com returns HTTP/2 responses, Vim-gista fails to parse response headers.
https://github.com/lambdalisue/vim-gista/blob/master/autoload/vital/_vim_gista/Web/HTTP.vim#L209
Here checks
HTTP/1\.\d\s
then cannot handle HTTP/2, so fail to parse status;https://github.com/lambdalisue/vim-gista/blob/master/autoload/gista/resource/remote.vim#L46-L48
res.status
is always 0, an exception is thrown.