|
|
@ -364,6 +364,33 @@ const struct message responses[] =
|
|
|
|
,.body= ""
|
|
|
|
,.body= ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
, {.name="200 trailing space on chunked body"
|
|
|
|
|
|
|
|
,.type= HTTP_RESPONSE
|
|
|
|
|
|
|
|
,.raw= "HTTP/1.1 200 OK\r\n"
|
|
|
|
|
|
|
|
"Content-Type: text/plain\r\n"
|
|
|
|
|
|
|
|
"Transfer-Encoding: chunked\r\n"
|
|
|
|
|
|
|
|
"\r\n"
|
|
|
|
|
|
|
|
"25 \r\n"
|
|
|
|
|
|
|
|
"This is the data in the first chunk\r\n"
|
|
|
|
|
|
|
|
"\r\n"
|
|
|
|
|
|
|
|
"1C\r\n"
|
|
|
|
|
|
|
|
"and this is the second one\r\n"
|
|
|
|
|
|
|
|
"\r\n"
|
|
|
|
|
|
|
|
"0 \r\n"
|
|
|
|
|
|
|
|
"\r\n"
|
|
|
|
|
|
|
|
,.should_keep_alive= TRUE
|
|
|
|
|
|
|
|
,.status_code= 200
|
|
|
|
|
|
|
|
,.num_headers= 2
|
|
|
|
|
|
|
|
,.headers=
|
|
|
|
|
|
|
|
{ {"Content-Type", "text/plain" }
|
|
|
|
|
|
|
|
, {"Transfer-Encoding", "chunked" }
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
,.body =
|
|
|
|
|
|
|
|
"This is the data in the first chunk\r\n"
|
|
|
|
|
|
|
|
"and this is the second one\r\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
, {.name= NULL } /* sentinel */
|
|
|
|
, {.name= NULL } /* sentinel */
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|