From ec22fa8a873b7d2b7868b69e2a612e6fa27afa2a Mon Sep 17 00:00:00 2001 From: ngn Date: Sun, 28 Apr 2024 04:03:23 +0300 Subject: [PATCH] rename t_method_map --- src/http.c | 2 +- src/req.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http.c b/src/http.c index c28def2..2d0af45 100644 --- a/src/http.c +++ b/src/http.c @@ -5,7 +5,7 @@ #include size_t http_method_sz = 6; -t_method_map http_method_map[] = { +method_map_t http_method_map[] = { {.code = METHOD_GET, .name = "GET", .body = false}, {.code = METHOD_HEAD, .name = "HEAD", .body = false}, {.code = METHOD_POST, .name = "POST", .body = true}, diff --git a/src/req.c b/src/req.c index cefd7ca..340e2ce 100644 --- a/src/req.c +++ b/src/req.c @@ -51,7 +51,7 @@ table_t *req_body_parse(req_t *req) { char *print = req_body(req); table_t *data = malloc(sizeof(table_t)); table_init(data); - if (parse_urldata(data, print, strlen(print)) != P_OK) { + if (parse_urldata(data, print, strlen(print)) != RES_OK) { free(print); table_free(data); free(data);