From 265f9d0edc3b501912bf5df4f4b553d46e526608 Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Mon, 1 Dec 2014 19:06:47 +0300 Subject: [PATCH] bench: add chunked bytes Reviewed-By: Fedor Indutny --- bench.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bench.c b/bench.c index 97709ed..5b452fa 100644 --- a/bench.c +++ b/bench.c @@ -25,7 +25,7 @@ #include static const char data[] = - "GET /joyent/http-parser HTTP/1.1\r\n" + "POST /joyent/http-parser HTTP/1.1\r\n" "Host: github.com\r\n" "DNT: 1\r\n" "Accept-Encoding: gzip, deflate, sdch\r\n" @@ -37,7 +37,8 @@ static const char data[] = "image/webp,*/*;q=0.8\r\n" "Referer: https://github.com/joyent/http-parser\r\n" "Connection: keep-alive\r\n" - "Cache-Control: max-age=0\r\n\r\n"; + "Transfer-Encoding: chunked\r\n" + "Cache-Control: max-age=0\r\n\r\nb\r\nhello world\r\n0\r\n\r\n"; static const size_t data_len = sizeof(data) - 1; static int on_info(http_parser* p) {