cvs: pecl /http http_api.c

From: Date: Wed, 23 Mar 2005 13:17:45 +0000
Subject: cvs: pecl /http http_api.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-2889@lists.php.net to get a copy of this message
mike Wed Mar 23 08:17:45 2005 EDT Modified files: /pecl/http http_api.c Log: - send full entity if range is "0-" http://cvs.php.net/diff.php/pecl/http/http_api.c?r1=1.66&r2=1.67&ty=u Index: pecl/http/http_api.c diff -u pecl/http/http_api.c:1.66 pecl/http/http_api.c:1.67 --- pecl/http/http_api.c:1.66 Wed Mar 23 08:11:19 2005 +++ pecl/http/http_api.c Wed Mar 23 08:17:45 2005 @@ -13,7 +13,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: http_api.c,v 1.66 2005/03/23 13:11:19 mike Exp $ */ +/* $Id: http_api.c,v 1.67 2005/03/23 13:17:45 mike Exp $ */ #ifdef HAVE_CONFIG_H # include "config.h" @@ -1159,8 +1159,12 @@ { /* "0-12345" */ case -10: - /* "0-", "0-0" or overflow */ - if (end == -1 || end == -10 || length <= end) { + /* "0-" */ + if (end == -1) { + return RANGE_NO; + } + /* "0-0" or overflow */ + if (end == -10 || length <= end) { return RANGE_ERR; } begin = 0; @@ -1184,7 +1188,7 @@ case -10: return RANGE_ERR; break; - + /* "12345-" */ case -1: if (length <= begin) {

« previous php.pecl.cvs (#2889) next »