mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-30 04:37:50 +02:00
Added basic webui (layout from l-n-s).
This commit is contained in:
parent
e7350a3af4
commit
719bfbc89b
8 changed files with 512 additions and 16 deletions
|
@ -113,6 +113,21 @@ BOOST_AUTO_TEST_CASE(ParseHTTPRequestWithHeaders)
|
|||
BOOST_CHECK_EQUAL(req2.getHeader("Host"), "localhost:123");
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(ParseHTTPRequestWithContent)
|
||||
{
|
||||
Request req1(
|
||||
"GET /index.html HTTP/1.1\r\n"
|
||||
"Host: localhost\r\n\r\n"
|
||||
"Random content."
|
||||
);
|
||||
Request req2(
|
||||
"GET /index.html HTTP/1.0\r\n\r\n"
|
||||
"Random content.\r\nTest content."
|
||||
);
|
||||
BOOST_CHECK_EQUAL(req1.getContent(), "Random content.");
|
||||
BOOST_CHECK_EQUAL(req2.getContent(), "Random content.\r\nTest content.");
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(HTTPResponseStatusMessage)
|
||||
{
|
||||
BOOST_CHECK_EQUAL(Response(0).getStatusMessage(), "");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue