-/* $OpenBSD: server_http.c,v 1.75 2015/02/23 18:43:18 reyk Exp $ */
+/* $OpenBSD: server_http.c,v 1.76 2015/04/08 19:39:29 florian Exp $ */
/*
* Copyright (c) 2006 - 2015 Reyk Floeter <reyk@openbsd.org>
* the carriage return? And some browsers seem to
* include the line length in the content-length.
*/
+ if (clt->clt_toread != 0) {
+ /* We already read Content-Length */
+ server_abort_http(clt, 400, errstr);
+ goto abort;
+ }
clt->clt_toread = strtonum(value, 0, LLONG_MAX,
&errstr);
if (errstr) {