If a body is too large send a 413 instead of 411.

This commit is contained in:
Joris Vink 2016-01-08 17:47:15 +01:00
parent f2d8834e8e
commit 0c47574fe9
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}