1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:08:12 +00:00

LibTLS: TLSv12::read_line() should chomp result string

Match the Core::IODevice::read_line() API change and return a chomped
string from here as well.
This commit is contained in:
Andreas Kling 2020-12-13 18:19:32 +01:00
parent b73d0bb6c8
commit 986ce57be9

View file

@ -70,7 +70,7 @@ String TLSv12::read_line(size_t max_size)
auto buffer = ByteBuffer::copy(start, offset);
m_context.application_buffer = m_context.application_buffer.slice(offset + 1, m_context.application_buffer.size() - offset - 1);
return String::copy(buffer);
return String::copy(buffer, Chomp);
}
bool TLSv12::write(const ByteBuffer& buffer)