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 e5f6d37cd22d9b06ff29a47a2d39de782da9fb5a
parent 99922d9468b124753fcff8db1ca7306475482671
Author: Joris Vink <joris@coders.se>
Date:   Mon, 27 Apr 2015 15:35:02 +0200

Make parameter validation less noisy.

Diffstat:
src/http.c | 8+-------
1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/src/http.c b/src/http.c @@ -1095,11 +1095,7 @@ http_argument_add(struct http_request *req, const char *name, len = strlen(value); } - if (!kore_validator_check(req, p->validator, value)) { - kore_log(LOG_NOTICE, - "validator %s (%s) for %s failed", - p->validator->name, p->name, req->path); - } else { + if (kore_validator_check(req, p->validator, value)) { q = kore_malloc(sizeof(struct http_arg)); q->len = len; q->s_value = NULL; @@ -1112,8 +1108,6 @@ http_argument_add(struct http_request *req, const char *name, return; } } - - kore_log(LOG_NOTICE, "unexpected parameter %s for %s", name, req->path); } static void