File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
boost/network/protocol/http/client/connection Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 30
30
#include < boost/network/traits/ostream_iterator.hpp>
31
31
#include < boost/network/version.hpp>
32
32
#include < boost/range/algorithm/transform.hpp>
33
+ #include < boost/range/iterator_range.hpp>
33
34
#include < boost/throw_exception.hpp>
34
35
35
36
namespace boost {
@@ -485,8 +486,10 @@ struct http_async_connection
485
486
if (this ->is_chunk_encoding && remove_chunk_markers_) {
486
487
for (size_t i = 0 ; i < this ->partial_parsed .size (); i += 1024 ) {
487
488
auto range = parse_chunk_encoding (boost::make_iterator_range (
488
- this ->partial_parsed .data () + i,
489
- this ->partial_parsed .data () +
489
+ static_cast <typename std::array<typename char_<Tag>::type, 1024 >::const_iterator>(
490
+ this ->partial_parsed .data ()) + i,
491
+ static_cast <typename std::array<typename char_<Tag>::type, 1024 >::const_iterator>(
492
+ this ->partial_parsed .data ()) +
490
493
std::min (i + 1024 , this ->partial_parsed .size ())));
491
494
body_string.append (boost::begin (range), boost::end (range));
492
495
}
You can’t perform that action at this time.
0 commit comments