diff --git a/src/qhttp/testqhttp.cc b/src/qhttp/testqhttp.cc index 273c29abf..f39e2976e 100644 --- a/src/qhttp/testqhttp.cc +++ b/src/qhttp/testqhttp.cc @@ -951,7 +951,7 @@ BOOST_FIXTURE_TEST_CASE(body_stream_reader, QhttpFixture) { response->sendStatus(qhttp::STATUS_INTERNAL_SERVER_ERR); return; } - _readContent.append(std::istream_iterator(request->content), std::istream_iterator()); + _readContent.append(std::istreambuf_iterator(request->content), {}); ++_numReads; if (request->contentReadBytes() == request->contentLengthBytes()) { BOOST_CHECK_EQUAL(_expectedNumReads, _numReads);