mirror of
https://github.com/cesanta/mongoose.git
synced 2024-11-24 02:59:01 +08:00
do check
This commit is contained in:
parent
f9bcffcbd5
commit
cee7087d54
@ -870,7 +870,7 @@ static void test_http_server(void) {
|
|||||||
|
|
||||||
ASSERT(fetch(&mgr, buf, url, "GET /a.txt HTTP/1.0\nA:\tB\n\n") == 200);
|
ASSERT(fetch(&mgr, buf, url, "GET /a.txt HTTP/1.0\nA:\tB\n\n") == 200);
|
||||||
ASSERT(cmpbody(buf, "hello\n") == 0);
|
ASSERT(cmpbody(buf, "hello\n") == 0);
|
||||||
ASSERT(cmpheader(buf, "C", "D"));
|
ASSERT(cmpheader(buf, "A", "B") == 0);
|
||||||
|
|
||||||
// Invalid header: failure
|
// Invalid header: failure
|
||||||
ASSERT(fetch(&mgr, buf, url, "GET /a.txt HTTP/1.0\nA B\n\n") == 0);
|
ASSERT(fetch(&mgr, buf, url, "GET /a.txt HTTP/1.0\nA B\n\n") == 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user