From b4c53e2cfd11fa9fec43d766fbec1a06931de11d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 27 Sep 2005 09:13:39 +0000 Subject: An anonymous submitter filed bug #1299181 (http://curl.haxx.se/bug/view.cgi?id=1299181) that identified a silly problem with Content-Range: headers with the 'bytes' keyword written in a different case than all lowercase! It would cause a segfault! --- lib/transfer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/transfer.c') diff --git a/lib/transfer.c b/lib/transfer.c index 996d133c9..13f31e9bc 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -880,11 +880,11 @@ CURLcode Curl_readwrite(struct connectdata *conn, /* Content-Range: bytes [num]- Content-Range: bytes: [num]- - The second format was added August 1st 2000 by Igor - Khristophorov since Sun's webserver JavaWebServer/1.1.1 - obviously sends the header this way! :-( */ + The second format was added since Sun's webserver + JavaWebServer/1.1.1 obviously sends the header this way! + */ - char *ptr = strstr(k->p, "bytes"); + char *ptr = Curl_strcasestr(k->p, "bytes"); ptr+=5; if(*ptr == ':') -- cgit v1.2.3