Skip to content

Commit

Permalink
Change simple-web to not use deprecated boost const_buffers_1
Browse files Browse the repository at this point in the history
  • Loading branch information
greenscientist committed Dec 22, 2024
1 parent 6bde986 commit b8a38cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/client_http.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ namespace SimpleWeb {

public:
/// Match condition for asio::read_until to match both standard and non-standard HTTP header endings.
std::pair<asio::buffers_iterator<asio::const_buffers_1>, bool> operator()(asio::buffers_iterator<asio::const_buffers_1> begin, asio::buffers_iterator<asio::const_buffers_1> end) {
// LOCAL MODIFICATION: We changed the operator() type to compile with boost 1.87 which removed const_buffers_1
// https://gitlab.com/eidheim/Simple-Web-Server/-/merge_requests/279
template <typename Iterator>
std::pair<Iterator, bool> operator()(Iterator begin, Iterator end) {
auto it = begin;
for(; it != end; ++it) {
if(*it == '\n') {
Expand Down

0 comments on commit b8a38cf

Please sign in to comment.