From eb3ef7df0f4c73a47d0a34fd63793ab68e50f18f Mon Sep 17 00:00:00 2001 From: c9s Date: Sun, 18 May 2014 11:04:13 +0800 Subject: [PATCH] rename request_methods to request_method --- include/r3.h | 2 +- src/node.c | 2 +- tests/bench_str.csv | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/r3.h b/include/r3.h index 164ccc0..089f6c4 100644 --- a/include/r3.h +++ b/include/r3.h @@ -73,7 +73,7 @@ typedef struct { char * path; int path_len; - int request_methods; // can be (GET || POST) + int request_method; // can be (GET || POST) char * host; // required host name int host_len; diff --git a/src/node.c b/src/node.c index b098d6d..bbfa7fd 100644 --- a/src/node.c +++ b/src/node.c @@ -202,7 +202,7 @@ route_info * route_info_createl(char * path, int path_len) { route_info * info = malloc(sizeof(route_info)); info->path = path; info->path_len = path_len; - info->request_methods = 0; // can be (GET || POST) + info->request_method = 0; // can be (GET || POST) info->host = NULL; // required host name info->host_len = 0; diff --git a/tests/bench_str.csv b/tests/bench_str.csv index 41dc13b..40eb2c2 100644 --- a/tests/bench_str.csv +++ b/tests/bench_str.csv @@ -86,3 +86,4 @@ 1400372910,12755936.07 1400373185,13716181.30 1400374415,13164892.40 +1400382244,12226293.04