Using list in http header

This commit is contained in:
2023-01-03 14:05:11 +01:00
parent a54a6af497
commit e82869e993
5 changed files with 35 additions and 27 deletions

View File

@ -64,7 +64,7 @@ static int request_handler(client_ctx_t *ctx) {
http_res *res = &ctx->res;
res->status = http_get_status(501);
res->hdr.field_num = 0;
http_init_hdr(&res->hdr);
res->hdr.last_field_num = -1;
sprintf(res->version, "1.1");