summaryrefslogtreecommitdiff
path: root/usr.sbin/httpd/server_http.c
diff options
context:
space:
mode:
authorSebastian Benoit <benno@cvs.openbsd.org>2021-10-23 15:30:29 +0000
committerSebastian Benoit <benno@cvs.openbsd.org>2021-10-23 15:30:29 +0000
commit73f30cdd02cd54f4c1e40080185bb82c14d2331a (patch)
tree17c9f042a5ff87fc87b5773b0a0512d90a89cca8 /usr.sbin/httpd/server_http.c
parentb094da05528e30a1df0864dd0a474ae0dd51afbe (diff)
annotate a 413 error with "request body too large" in the error log.
ok claudio@
Diffstat (limited to 'usr.sbin/httpd/server_http.c')
-rw-r--r--usr.sbin/httpd/server_http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/httpd/server_http.c b/usr.sbin/httpd/server_http.c
index 153829f4201..696a03ddfaa 100644
--- a/usr.sbin/httpd/server_http.c
+++ b/usr.sbin/httpd/server_http.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server_http.c,v 1.145 2021/10/22 08:51:50 benno Exp $ */
+/* $OpenBSD: server_http.c,v 1.146 2021/10/23 15:30:28 benno Exp $ */
/*
* Copyright (c) 2020 Matthias Pressfreund <mpfr@fn.de>
@@ -1406,7 +1406,7 @@ server_response(struct httpd *httpd, struct client *clt)
if (clt->clt_toread > 0 && (size_t)clt->clt_toread >
srv_conf->maxrequestbody) {
- server_abort_http(clt, 413, NULL);
+ server_abort_http(clt, 413, "request body too large");
return (-1);
}