From 1680331d75354e2cae3d12a1e2794a7a1786b4da Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 16 Nov 2005 13:08:27 +0000 Subject: [PATCH] - "=" should actually be ":" in the Content-Range header --- http_message_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http_message_api.c b/http_message_api.c index 77f18e0..c28ff6f 100644 --- a/http_message_api.c +++ b/http_message_api.c @@ -189,9 +189,9 @@ PHP_HTTP_API http_message *_http_message_parse_ex(http_message *msg, const char ulong total = 0, start = 0, end = 0, len = 0; if (!strncasecmp(Z_STRVAL_P(c), "bytes", lenof("bytes")) && - (Z_STRVAL_P(c)[lenof("bytes")] == '=' || Z_STRVAL_P(c)[lenof("bytes")] == ' ')) { + (Z_STRVAL_P(c)[lenof("bytes")] == ':' || Z_STRVAL_P(c)[lenof("bytes")] == ' ')) { char *total_at = NULL, *end_at = NULL; - char *start_at = Z_STRVAL_P(c) + lenof("bytes="); + char *start_at = Z_STRVAL_P(c) + sizeof("bytes"); start = strtoul(start_at, &end_at, 10); if (end_at) { -- 2.30.2