mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-18 10:59:45 +00:00
do check
This commit is contained in:
1 parent
f9bcffcbd5
commit
cee7087d54
1 file changed
+1
-1
+1
-1
@@ -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(cmpbody(buf, "hello\n") == 0);
|
||||
ASSERT(cmpheader(buf, "C", "D"));
|
||||
ASSERT(cmpheader(buf, "A", "B") == 0);
|
||||
|
||||
// Invalid header: failure
|
||||
ASSERT(fetch(&mgr, buf, url, "GET /a.txt HTTP/1.0\nA B\n\n") == 0);
|
||||
|
||||
Reference in new issue
Block a user