aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-09-27 09:13:39 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-09-27 09:13:39 +0000
commitb4c53e2cfd11fa9fec43d766fbec1a06931de11d (patch)
tree2e44596fe0dc87fb30ac8c995be8542bb11d7f29 /lib
parenta2902de67c3bf044a19419f8826521a963baaa7f (diff)
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!
Diffstat (limited to 'lib')
-rw-r--r--lib/transfer.c8
1 files changed, 4 insertions, 4 deletions
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 == ':')