summaryrefslogtreecommitdiff
path: root/Libraries/LibTLS
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-12-13 18:19:32 +0100
committerAndreas Kling <kling@serenityos.org>2020-12-13 18:19:32 +0100
commit986ce57be91c42c5a7d513b5906e5386648ca940 (patch)
tree284ee75a33dbecf2cc1e8d407e4705e791b8e12e /Libraries/LibTLS
parentb73d0bb6c87692b17c94960a1b60e7886f70846f (diff)
downloadserenity-986ce57be91c42c5a7d513b5906e5386648ca940.zip
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.
Diffstat (limited to 'Libraries/LibTLS')
-rw-r--r--Libraries/LibTLS/Socket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibTLS/Socket.cpp b/Libraries/LibTLS/Socket.cpp
index a8ff83197a..3c242c3be1 100644
--- a/Libraries/LibTLS/Socket.cpp
+++ b/Libraries/LibTLS/Socket.cpp
@@ -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)