| 441 | } |
| 442 | |
| 443 | void |
| 444 | testIssue818() |
| 445 | { |
| 446 | // Make sure that the parser clears pre-existing fields |
| 447 | request<string_body> m; |
| 448 | m.set(field::accept, "html/text"); |
| 449 | BEAST_EXPECT(std::distance(m.begin(), m.end()) == 1); |
| 450 | request_parser<string_body> p{std::move(m)}; |
| 451 | BEAST_EXPECT(std::distance(m.begin(), m.end()) == 0); |
| 452 | auto& m1 = p.get(); |
| 453 | BEAST_EXPECT(std::distance(m1.begin(), m1.end()) == 0); |
| 454 | } |
| 455 | |
| 456 | void |
| 457 | testIssue1187() |