kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 5f1238c2dc3d1ff8559c32fa5280779b8423df55
parent dc4f856c5cf69299591af83af15305080c8fb4f2
Author: Joris Vink <joris@coders.se>
Date:   Thu,  9 Apr 2015 10:00:42 +0200

Merge pull request #40 from Geenz/master

Support PUT, DELETE, and HEAD methods in configs.
Diffstat:
src/config.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/config.c b/src/config.c @@ -703,6 +703,12 @@ configure_params(char **argv) current_method = HTTP_METHOD_POST; } else if (!strcasecmp(argv[1], "get")) { current_method = HTTP_METHOD_GET; + } else if (!strcasecmp(argv[1], "put")) { + current_method = HTTP_METHOD_PUT; + } else if (!strcasecmp(argv[1], "delete")) { + current_method = HTTP_METHOD_DELETE; + } else if (!strcasecmp(argv[1], "head")) { + current_method = HTTP_METHOD_HEAD; } else { printf("unknown method: %s in params block for %s\n", argv[1], argv[2]);