I might do it later today -- I don't want to "just do it" without testing
first, and I'm a bit busy today.


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>
> .
>