diff --git a/test/unit_test.c b/test/unit_test.c index 1acb23e3..2b432b14 100644 --- a/test/unit_test.c +++ b/test/unit_test.c @@ -899,6 +899,10 @@ static void test_http_server(void) { ASSERT(fetch(&mgr, buf, url, "POST /a.txt HTTP/1.0\n" "Content-Length: 19000000000000000000\n\n") == 0); + ASSERT(fetch(&mgr, buf, url, + "GET /a.txt HTTP/1.0\n" + ":\n" // truncated header + "Content-Length: 1\n\n") == 0); { extern char *mg_http_etag(char *, size_t, size_t, time_t);