X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_filter_api.c;fp=http_filter_api.c;h=2553d681113728bbbe727deb95fc2c7b4ad91fe3;hp=dcc71867ed444648c0d09f53e34ff35507882474;hb=d3cd7d7d793bb12c2c6fe363cd5b7f29b3fc666b;hpb=a5a48e24bce12e3b1a21763df927550f4cbc29e9 diff --git a/http_filter_api.c b/http_filter_api.c index dcc7186..2553d68 100644 --- a/http_filter_api.c +++ b/http_filter_api.c @@ -165,8 +165,8 @@ static HTTP_FILTER_FUNCTION(chunked_decode) /* 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) {