mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 02:34:59 -07:00
fixup! perf(lsp): use string.buffer for rpc loop
This commit is contained in:
parent
29ee7e600e
commit
de17f182bb
@ -26,7 +26,7 @@ local function get_content_length(header)
|
||||
break
|
||||
end
|
||||
local key, value = line:match('^%s*(%S+)%s*:%s*(%d+)%s*$')
|
||||
if key:lower() == 'content-length' then
|
||||
if key and key:lower() == 'content-length' then
|
||||
return tonumber(value)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user