Add buffer_size

This commit is contained in:
Vinnie Falco committed 2019-02-03 12:59:11 -08:00
1 parent 64149f434a
commit 35dbd140d4
64 files changed
+427 -379

No files matched your search

@@ -10,6 +10,7 @@
#ifndef BOOST_BEAST_WEBSOCKET_IMPL_STREAM_HPP
#define BOOST_BEAST_WEBSOCKET_IMPL_STREAM_HPP
#include <boost/beast/core/buffer_size.hpp>
#include <boost/beast/websocket/rfc6455.hpp>
#include <boost/beast/websocket/teardown.hpp>
#include <boost/beast/websocket/detail/hybi13.hpp>
@@ -282,7 +283,6 @@ parse_fh(
DynamicBuffer& b,
error_code& ec)
{
using net::buffer_size;
if(buffer_size(b.data()) < 2)
{
// need more bytes