--- a/mercurial/hgweb/protocol.py Sun Oct 19 22:07:43 2008 +0200
+++ b/mercurial/hgweb/protocol.py Mon Oct 20 10:15:26 2008 +0200
@@ -117,11 +117,7 @@
# fail early if possible
if not check_heads():
- length = int(req.env.get('CONTENT_LENGTH', 0))
- for s in util.filechunkiter(req, limit=length):
- # drain incoming bundle, else client will not see
- # response when run outside cgi script
- pass
+ req.drain()
raise ErrorResponse(HTTP_OK, 'unsynced changes')
# do not lock repo until all changegroup data is