GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — formatting reverted to original · CrowCpp/Crow@f333d40

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tests
    • unittest.cpp
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tests/unittest.cpp‎

Copy file name to clipboardExpand all lines: tests/unittest.cpp
+5-6Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ class HttpClient
3838
HttpClient(std::string const& address, uint16_t port):
3939
c(ic)
4040
{
41-
c.connect(asio::ip::tcp::endpoint(asio::ip::make_address(address),
42-
port));
41+
c.connect(asio::ip::tcp::endpoint( asio::ip::make_address(address),
42+
port));
4343
}
4444

4545
/** sends a request string through the socket */
@@ -674,8 +674,8 @@ TEST_CASE("server_handling_error_request_http_version")
674674
try
675675
{
676676
auto resp = HttpClient::request(LOCALHOST_ADDRESS,
677-
45451,
678-
"POST /\r\nContent-Length:3\r\nX-HeaderTest: 123\r\n\r\nA=B\r\n");
677+
45451,
678+
"POST /\r\nContent-Length:3\r\nX-HeaderTest: 123\r\n\r\nA=B\r\n");
679679
FAIL_CHECK();
680680
}
681681
catch (std::exception& e)
@@ -1974,8 +1974,6 @@ TEST_CASE("middleware_cors")
19741974
return "-";
19751975
});
19761976

1977-
1978-
19791977
const auto port = 33333;
19801978
auto _ = app.bindaddr(LOCALHOST_ADDRESS).port(port).run_async();
19811979
app.wait_for_server_start();
@@ -2415,6 +2413,7 @@ TEST_CASE("multipart")
24152413

24162414
CHECK(res.code == 400);
24172415
CHECK(res.body == "Empty boundary in multipart message");
2416+
24182417
}
24192418

24202419
//Boundary that differs from actual boundary

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.