From d5bedd5958a4ac7946b9d2e61159f2d5c9f7dd42 Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 18 Oct 2017 19:55:02 +0200 Subject: [PATCH] Fixed async_response headers not copied/swapped well --- boost/network/protocol/http/message/async_message.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/boost/network/protocol/http/message/async_message.hpp b/boost/network/protocol/http/message/async_message.hpp index 9be26afb4..bfcb00dab 100644 --- a/boost/network/protocol/http/message/async_message.hpp +++ b/boost/network/protocol/http/message/async_message.hpp @@ -43,6 +43,9 @@ struct async_message { destination_(), status_(), headers_(), + retrieved_headers_(), + added_headers(), + removed_headers(), body_() {} async_message(async_message const& other) @@ -52,6 +55,9 @@ struct async_message { destination_(other.destination_), status_(other.status_), headers_(other.headers_), + retrieved_headers_(other.retrieved_headers_), + added_headers(other.added_headers), + removed_headers(other.removed_headers), body_(other.body_) {} string_type const status_message() const { return status_message_.get(); } @@ -123,6 +129,9 @@ struct async_message { std::swap(source_, other.source_); std::swap(destination_, other.destination_); std::swap(headers_, other.headers_); + std::swap(retrieved_headers_, other.retrieved_headers_); + std::swap(added_headers, other.added_headers); + std::swap(removed_headers, other.removed_headers); std::swap(body_, other.body_); }