fixup! perf(lsp): use string.buffer for rpc loop

This commit is contained in:
Mathias Fussenegger 2024-12-10 19:37:47 +01:00
parent 29ee7e600e
commit de17f182bb

View File

@ -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