projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- some test fixup
[m6w6/ext-http]
/
http_filter_api.c
diff --git
a/http_filter_api.c
b/http_filter_api.c
index f7e99ec3a12c13bd488bc13468a62e55c37c1f5a..2553d681113728bbbe727deb95fc2c7b4ad91fe3 100644
(file)
--- a/
http_filter_api.c
+++ b/
http_filter_api.c
@@
-12,10
+12,6
@@
/* $Id$ */
/* $Id$ */
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
#define HTTP_WANT_ZLIB
#include "php_http.h"
#define HTTP_WANT_ZLIB
#include "php_http.h"
@@
-78,7
+74,7
@@
PHP_MINIT_FUNCTION(http_filter)
php_stream_bucket_append(buckets_out, __buck TSRMLS_CC); \
}
php_stream_bucket_append(buckets_out, __buck TSRMLS_CC); \
}
-typedef struct {
+typedef struct
_http_chunked_decode_filter_buffer_t
{
phpstr buffer;
ulong hexlen;
} HTTP_FILTER_BUFFER(chunked_decode);
phpstr buffer;
ulong hexlen;
} HTTP_FILTER_BUFFER(chunked_decode);
@@
-169,8
+165,8
@@
static HTTP_FILTER_FUNCTION(chunked_decode)
/* ignore preceeding CRLFs (too loose?) */
while (off < PHPSTR_LEN(buffer) && (
/* 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) {
++off;
}
if (off) {