Subject: | apache 1.3 may include spaces before the optional "chunk-extension" |
POE::Filter::HTTPChunk seems to follow RFC2616 3.6.1 fairly closely (snippet below).
Unfortunately, apache 1.3 seems to include trailing spaces after the chunk-size and before the CRLF when there's no chunk-extension (and possibly when there is, although I can't force that condition). This results in the following debug statements:
Finding chunk length marker at /home/y/lib/perl5/site_perl/5.6.1/POE/Filter/HTTPChunk.pm line 93.
DIDN'T FIND CHUNK LENGTH 5b
The enclosed patch which adds \s* to the chunk-length search regexp fixes it for me. Please apply the patch and re-release.
Chunked-Body = *chunk
last-chunk
trailer
CRLF
chunk = chunk-size [ chunk-extension ] CRLF
chunk-data CRLF
chunk-size = 1*HEX
last-chunk = 1*("0") [ chunk-extension ] CRLF
chunk-extension= *( ";" chunk-ext-name [ "=" chunk-ext-val ] )
chunk-ext-name = token
chunk-ext-val = token | quoted-string
chunk-data = chunk-size(OCTET)
trailer = *(entity-header CRLF)
Message body not shown because it is not plain text.