]> Cypherpunks repositories - gostls13.git/commit
net/http: clarify Request.ContentLength behavior on the client.
authorAaron Jacobs <jacobsa@google.com>
Wed, 14 Sep 2016 02:57:15 +0000 (12:57 +1000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 14 Sep 2016 03:00:58 +0000 (03:00 +0000)
commita562351e512682046623ecbd106f4973f3525be9
tree95e54c78caf72dbf54d7860c4860d9441d583f1c
parent6488201b9b980277b41de540a88f4289aee64e1c
net/http: clarify Request.ContentLength behavior on the client.

While you could argue the previous wording technically said that -1 is
an acceptable way to indicate "unknown" on the client, it could be read
as ambiguous. Now it's clear that both 0 and -1 mean unknown.

Change-Id: I3bc5a3fd5afd1999e487296ec121eb548415e6b0
Reviewed-on: https://go-review.googlesource.com/29130
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/request.go