Skip to content

Introduced new chunked transfer encoding parser to remove chunk markers #720

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Mar 31, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removed commented lines.
  • Loading branch information
umennel committed Dec 18, 2016
commit ff5c7c8fb2af00b2ea52f6c8b410380922865152
31 changes: 0 additions & 31 deletions boost/network/protocol/http/client/connection/async_normal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,37 +576,6 @@ struct http_async_connection
}
}

// string_type parse_chunk_encoding(string_type& body_string) {
// string_type body;
// string_type crlf = "\r\n";

// typename string_type::iterator begin = body_string.begin();
// for (typename string_type::iterator iter =
// std::search(begin, body_string.end(), crlf.begin(), crlf.end());
// iter != body_string.end();
// iter =
// std::search(begin, body_string.end(), crlf.begin(), crlf.end())) {
// string_type line(begin, iter);
// if (line.empty()) {
// break;
// }
// std::stringstream stream(line);
// int len;
// stream >> std::hex >> len;
// std::advance(iter, 2);
// if (len == 0) {
// break;
// }
// if (len <= body_string.end() - iter) {
// body.insert(body.end(), iter, iter + len);
// std::advance(iter, len + 2);
// }
// begin = iter;
// }

// return body;
// }

int timeout_;
bool remove_chunk_markers_;
boost::asio::steady_timer timer_;
Expand Down