From: Michael Wallner Date: Thu, 8 Sep 2005 17:37:35 +0000 (+0000) Subject: - use http_locate_eol() X-Git-Tag: RELEASE_0_13_0~7 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=35a74f686e9784979df497a66e395b055f5a19e0;p=m6w6%2Fext-http - use http_locate_eol() --- diff --git a/http_info_api.c b/http_info_api.c index 18fea6f..a6b1213 100644 --- a/http_info_api.c +++ b/http_info_api.c @@ -81,7 +81,7 @@ PHP_HTTP_API STATUS _http_info_parse_ex(const char *pre_header, http_info *info, } /* where's the end of the line */ - if (!((end = strchr(pre_header, '\r')) || (end = strchr(pre_header, '\n')))) { + if (!(end = http_locate_eol(pre_header, NULL))) { end = pre_header + strlen(pre_header); }