artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59fb41f
)
annotate a 413 error with "request body too large" in the error log.
author
benno
<benno@openbsd.org>
Sat, 23 Oct 2021 15:30:28 +0000
(15:30 +0000)
committer
benno
<benno@openbsd.org>
Sat, 23 Oct 2021 15:30:28 +0000
(15:30 +0000)
ok claudio@
usr.sbin/httpd/server_http.c
patch
|
blob
|
history
diff --git
a/usr.sbin/httpd/server_http.c
b/usr.sbin/httpd/server_http.c
index
153829f
..
696a03d
100644
(file)
--- a/
usr.sbin/httpd/server_http.c
+++ b/
usr.sbin/httpd/server_http.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: server_http.c,v 1.14
5 2021/10/22 08:51:50
benno Exp $ */
+/* $OpenBSD: server_http.c,v 1.14
6 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);
}