Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2995871A6 for ; Wed, 31 Aug 2011 21:38:02 +0000 (UTC) Received: (qmail 84753 invoked by uid 500); 31 Aug 2011 21:38:01 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 84707 invoked by uid 500); 31 Aug 2011 21:38:00 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 84700 invoked by uid 99); 31 Aug 2011 21:38:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2011 21:38:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2011 21:37:59 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 1601B23889F7; Wed, 31 Aug 2011 21:37:39 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1163833 - /httpd/httpd/trunk/modules/http/byterange_filter.c Date: Wed, 31 Aug 2011 21:37:38 -0000 To: cvs@httpd.apache.org From: sf@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110831213739.1601B23889F7@eris.apache.org> Author: sf Date: Wed Aug 31 21:37:38 2011 New Revision: 1163833 URL: http://svn.apache.org/viewvc?rev=1163833&view=rev Log: Send a 206 response for a "Range: bytes=0-" request, even if 200 would be more efficient. Modified: httpd/httpd/trunk/modules/http/byterange_filter.c Modified: httpd/httpd/trunk/modules/http/byterange_filter.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http/byterange_filter.c?rev=1163833&r1=1163832&r2=1163833&view=diff ============================================================================== --- httpd/httpd/trunk/modules/http/byterange_filter.c (original) +++ httpd/httpd/trunk/modules/http/byterange_filter.c Wed Aug 31 21:37:38 2011 @@ -613,9 +613,9 @@ static int ap_set_byterange(request_rec sum_lengths += oend - ostart + 1; num_ranges++; } - if (sum_lengths >= clength) { + if (sum_lengths > clength) { ap_log_rerror(APLOG_MARK, APLOG_TRACE1, 0, r, - "Sum of ranges not smaller than file, ignoring."); + "Sum of ranges larger than file, ignoring."); return 0; }