commit 0c47574fe9e6ea2d585aa067a92404e4c4770b75
parent f2d8834e8e4aeaca3dd98372a05622ed3ee27011
Author: Joris Vink <joris@coders.se>
Date: Fri, 8 Jan 2016 17:47:15 +0100
If a body is too large send a 413 instead of 411.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/http.c b/src/http.c
@@ -616,7 +616,7 @@ http_header_recv(struct netbuf *nb)
kore_log(LOG_NOTICE, "body too large (%ld > %ld)",
clen, http_body_max);
req->flags |= HTTP_REQUEST_DELETE;
- http_error_response(req->owner, 411);
+ http_error_response(req->owner, 413);
return (KORE_RESULT_OK);
}