| 454 | } |
| 455 | |
| 456 | void |
| 457 | testIssue1187() |
| 458 | { |
| 459 | // make sure parser finishes on redirect |
| 460 | error_code ec; |
| 461 | parser_type<false> p; |
| 462 | p.eager(true); |
| 463 | p.put(buf( |
| 464 | "HTTP/1.1 301 Moved Permanently\r\n" |
| 465 | "Location: https://www.ebay.com\r\n" |
| 466 | "\r\n\r\n"), ec); |
| 467 | BEAST_EXPECTS(! ec, ec.message()); |
| 468 | BEAST_EXPECT(p.is_header_done()); |
| 469 | BEAST_EXPECT(! p.is_done()); |
| 470 | BEAST_EXPECT(p.need_eof()); |
| 471 | } |
| 472 | |
| 473 | void |
| 474 | testIssue1880() |