kore

a fork of the worlds most advanced web framework
Log | Files | Refs | README | LICENSE

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:
Msrc/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); }