Skip to content

Commit 671b40e

Browse files
maingohdeanberris
authored andcommitted
Fixed async_response headers not copied/swapped well (#786)
1 parent 673f36c commit 671b40e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

boost/network/protocol/http/message/async_message.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ struct async_message {
4343
destination_(),
4444
status_(),
4545
headers_(),
46+
retrieved_headers_(),
47+
added_headers(),
48+
removed_headers(),
4649
body_() {}
4750

4851
async_message(async_message const& other)
@@ -52,6 +55,9 @@ struct async_message {
5255
destination_(other.destination_),
5356
status_(other.status_),
5457
headers_(other.headers_),
58+
retrieved_headers_(other.retrieved_headers_),
59+
added_headers(other.added_headers),
60+
removed_headers(other.removed_headers),
5561
body_(other.body_) {}
5662

5763
string_type const status_message() const { return status_message_.get(); }
@@ -123,6 +129,9 @@ struct async_message {
123129
std::swap(source_, other.source_);
124130
std::swap(destination_, other.destination_);
125131
std::swap(headers_, other.headers_);
132+
std::swap(retrieved_headers_, other.retrieved_headers_);
133+
std::swap(added_headers, other.added_headers);
134+
std::swap(removed_headers, other.removed_headers);
126135
std::swap(body_, other.body_);
127136
}
128137

0 commit comments

Comments
 (0)