OK, modified and test under
v0.8.26
v0.10.5
v0.10.28
v0.11.13



On Tue, May 27, 2014 at 8:39 AM, Douglas Christopher Wilson <
notifications@github.com> wrote:

> In index.js:
>
> > +  function onCompressedEnd() {
> > +    if (compressedReceived < length) {
> > +      err = new Error('compressed stream too short')
> > +      err.status = 400
> > +      next(err)
> > +      return
> > +    } else if (compressedReceived > length) {
> > +      err = new Error('compressed stream too long')
> > +      err.status = 400
> > +      next(err)
> > +      return
> > +    }
> > +  }
> > +  function setupCompressedStream() {
> > +    // assert the stream encoding is buffer.
> > +    if (req._decoder || (req._readableState && req._readableState.encoding !== null)) {
>
> It's a "I'll fix this if you don't do it first" kinda thing ;) You don't
> have to do anything if you want to think about this as a note to myself for
> when I merge this :D
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/expressjs/body-parser/pull/20/files#r13062728>
> .
>