mirror of
https://github.com/boostorg/beast.git
synced 2025-07-30 04:47:29 +02:00
@ -1,3 +1,9 @@
|
|||||||
|
Version XXX:
|
||||||
|
|
||||||
|
* fix erase field
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
Version 284:
|
Version 284:
|
||||||
|
|
||||||
* fix compilation macro documentation
|
* fix compilation macro documentation
|
||||||
|
@ -617,7 +617,7 @@ erase(const_iterator pos) ->
|
|||||||
{
|
{
|
||||||
auto next = pos;
|
auto next = pos;
|
||||||
auto& e = *next++;
|
auto& e = *next++;
|
||||||
set_.erase(e);
|
set_.erase(set_.iterator_to(e));
|
||||||
list_.erase(pos);
|
list_.erase(pos);
|
||||||
delete_element(const_cast<element&>(e));
|
delete_element(const_cast<element&>(e));
|
||||||
return next;
|
return next;
|
||||||
|
@ -988,6 +988,21 @@ public:
|
|||||||
BEAST_EXPECT(res[field::transfer_encoding] == "chunked, foo");
|
BEAST_EXPECT(res[field::transfer_encoding] == "chunked, foo");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
testIssue1828()
|
||||||
|
{
|
||||||
|
beast::http::fields req;
|
||||||
|
req.insert("abc", "1");
|
||||||
|
req.insert("abc", "2");
|
||||||
|
req.insert("abc", "3");
|
||||||
|
BEAST_EXPECT(req.count("abc") == 3);
|
||||||
|
auto iter = req.find("abc");
|
||||||
|
BEAST_EXPECT(iter->value() == "1");
|
||||||
|
req.insert("abc", "4");
|
||||||
|
req.erase(iter);
|
||||||
|
BEAST_EXPECT(req.count("abc") == 3);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
run() override
|
run() override
|
||||||
{
|
{
|
||||||
@ -1002,6 +1017,8 @@ public:
|
|||||||
testKeepAlive();
|
testKeepAlive();
|
||||||
testContentLength();
|
testContentLength();
|
||||||
testChunked();
|
testChunked();
|
||||||
|
|
||||||
|
testIssue1828();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user