cvs: pecl /http http_filter_api.c
| From: | Michael Wallner | Date: | Tue, 14 Mar 2006 09:01:11 +0000 |
| Subject: | cvs: pecl /http http_filter_api.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-5462@lists.php.net to get a copy of this message | ||
mike Tue Mar 14 09:01:11 2006 UTC
Modified files:
/pecl/http http_filter_api.c
Log:
- rather use '\r'/'\n' character symbols than the hex values
http://cvs.php.net/viewcvs.cgi/pecl/http/http_filter_api.c?r1=1.16&r2=1.17&diff_format=u
Index: pecl/http/http_filter_api.c
diff -u pecl/http/http_filter_api.c:1.16 pecl/http/http_filter_api.c:1.17
--- pecl/http/http_filter_api.c:1.16 Mon Feb 27 14:35:04 2006
+++ pecl/http/http_filter_api.c Tue Mar 14 09:01:11 2006
@@ -10,7 +10,7 @@
+--------------------------------------------------------------------+
*/
-/* $Id: http_filter_api.c,v 1.16 2006/02/27 14:35:04 mike Exp $ */
+/* $Id: http_filter_api.c,v 1.17 2006/03/14 09:01:11 mike Exp $ */
#define HTTP_WANT_ZLIB
#include "php_http.h"
@@ -165,8 +165,8 @@
/* ignore preceeding CRLFs (too loose?) */
while (off < PHPSTR_LEN(buffer) && (
- PHPSTR_VAL(buffer)[off] == 0xa ||
- PHPSTR_VAL(buffer)[off] == 0xd)) {
+ PHPSTR_VAL(buffer)[off] == '\n' ||
+ PHPSTR_VAL(buffer)[off] == '\r')) {
++off;
}
if (off) {