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:
parent
b73d0bb6c8
commit
986ce57be9
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue