mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -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
|
break
|
||||||
end
|
end
|
||||||
local key, value = line:match('^%s*(%S+)%s*:%s*(%d+)%s*$')
|
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)
|
return tonumber(value)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user