summaryrefslogtreecommitdiff
path: root/usr.sbin/httpd/server_http.c
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2015-04-09 16:48:30 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2015-04-09 16:48:30 +0000
commita1320a97a4295507345de0c691625b8589fe0e07 (patch)
treec97fd405709f742ef836878d1fc1dc773c8ce597 /usr.sbin/httpd/server_http.c
parent39b463e0f6136441edb917784cd26c6c6257db14 (diff)
Revert previous as this breaks stuff.
I fscked up the testing, sorry! Found the hard way by jsg@
Diffstat (limited to 'usr.sbin/httpd/server_http.c')
-rw-r--r--usr.sbin/httpd/server_http.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.sbin/httpd/server_http.c b/usr.sbin/httpd/server_http.c
index 975f8788759..eb47331930e 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.76 2015/04/08 19:39:29 florian Exp $ */
+/* $OpenBSD: server_http.c,v 1.77 2015/04/09 16:48:29 florian Exp $ */
/*
* Copyright (c) 2006 - 2015 Reyk Floeter <reyk@openbsd.org>
@@ -339,11 +339,6 @@ server_read_http(struct bufferevent *bev, void *arg)
* 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) {