Skip to content

Commit

Permalink
rename t_method_map
Browse files Browse the repository at this point in the history
  • Loading branch information
ngn13 committed Apr 28, 2024
1 parent 9e3278a commit ec22fa8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <string.h>

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},
Expand Down
2 changes: 1 addition & 1 deletion src/req.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ec22fa8

Please sign in to comment.