Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added one more test case

  • Loading branch information...
commit c5e7bc6b9d99f17075f8919a1dfe04373564117d 1 parent c2d0ac6
@tokuhirom tokuhirom authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  test_response.c
View
3  test_response.c
@@ -27,7 +27,7 @@ int main(void)
struct phr_header headers[4];
size_t num_headers;
- tests(33);
+ tests(34);
#define PARSE(s, last_len, exp, comment) \
num_headers = sizeof(headers) / sizeof(headers[0]); \
@@ -77,6 +77,7 @@ int main(void)
ok(minor_version == 0, "minor_version");
ok(status == 500, "status");
ok(strrcmp(msg, msg_len, "Internal Server Error"), "msg");
+ ok(msg_len == sizeof("Internal Server Error")-1, "msg_len");
PARSE("HTTP/1.0 200 OK\r\n\r", strlen("GET /hoge HTTP/1.0\r\n\r") - 1,
-2, "slowloris (incomplete)");
Please sign in to comment.
Something went wrong with that request. Please try again.