diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/transport.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/transport.hpp b/client/transport.hpp index ae56f73..6311edd 100644 --- a/client/transport.hpp +++ b/client/transport.hpp @@ -83,9 +83,9 @@ private: } std::string read_line() { - const auto bytes = boost::asio::read_until(m_socket, m_buffer, '\n'); + const auto bytes = boost::asio::read_until(m_socket, m_buffer, "\r\n"); const auto data = boost::asio::buffer_cast<const char*>(m_buffer.data()); - const std::string result{data, bytes - 1}; + const std::string result{data, bytes - 2}; // Skip \r\n m_buffer.consume(bytes); return result; } |