| 1594 | } |
| 1595 | |
| 1596 | void |
| 1597 | testIssue2201() |
| 1598 | { |
| 1599 | const char data[] = |
| 1600 | "HTTP/1.1 200 OK\r\n" |
| 1601 | "Content-Length: 5\r\n" |
| 1602 | "\r\n" |
| 1603 | "*****"; |
| 1604 | |
| 1605 | test_parser<false> p; |
| 1606 | p.eager(true); |
| 1607 | p.body_limit(3); |
| 1608 | error_code ec; |
| 1609 | p.put(net::buffer(data, strlen(data)), ec); |
| 1610 | BEAST_EXPECT(ec == error::body_limit); |
| 1611 | } |
| 1612 | |
| 1613 | //-------------------------------------------------------------------------- |
| 1614 |
nothing calls this directly
no test coverage detected