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 821c1df8ec3e63a9d9ef667ed4ec003c0e0f092e
parent 916ce222b4d027447e8246cf4d4fb7d930509516
Author: Joris Vink <joris@coders.se>
Date:   Wed, 18 Jul 2018 16:24:28 +0200

use method not allowed when required

Diffstat:
src/http.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/http.c b/src/http.c @@ -1455,7 +1455,7 @@ http_request_new(struct connection *c, const char *host, } if (!(hdlr->methods & m)) { - http_error_response(c, 400); + http_error_response(c, HTTP_STATUS_METHOD_NOT_ALLOWED); return (NULL); }