diff --git a/websocketpp/processors/hybi13.hpp b/websocketpp/processors/hybi13.hpp index 14b2d3fa9d..92a4e2ea70 100644 --- a/websocketpp/processors/hybi13.hpp +++ b/websocketpp/processors/hybi13.hpp @@ -396,7 +396,8 @@ public: m_extended_header ) ); - // TODO: reserve space in the existing message for the new bytes + + out.reserve(out.size() + m_bytes_needed); } m_current_msg = &m_data_msg; }