Gah! The codereview mercurial extension is crashing on Lion for me.
Is there a known issue/fix for this? Otherwise, I can wait until my
snow leopard machine comes back from surgery to submit this fix.
On Sep 1, 11:58 pm, Dave Grijalva <
grija...@gmail.com> wrote:
> Totally agree. HTTP in practice is horribly messy. I'll send a bug and patch tomorrow with tests and whatnot.
>
> -dave
>
> On Sep 1, 2011, at 10:28 PM, Brad Fitzpatrick <
bradf...@golang.org> wrote:
>
>
>
>
>
>
>
> > This keeps coming up in different forms. See server_test.go and requestwrite_test.go. Search for "empty", "zero", etc.
>
> > If the specification is ambiguous (but please research it first) and nginx et al require it, I'm fine including a "Content-Length: 0" when request.ContentLength = 0 (/ unset) and the Request.Body is nil or immediately EOFs (which there's an existing check for, which I think simply omits the Transfer-Encoding: chunked).
>
> > So yeah, I'm cool with it, but it'll need tests & docs & references. These corner cases are gross and annoying when they keep coming up, so I'd like it well tested & documented so we don't regress.
>