]> Cypherpunks repositories - gostls13.git/commit
net/http: document that after Hijack, Request.Body is invalid
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 21 Jul 2017 18:52:38 +0000 (18:52 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 21 Jul 2017 18:55:41 +0000 (18:55 +0000)
commitc522b2bec9e6186a8efb7ddd221295390638a18e
tree631ccd06338e17ff1f94c0a696dd6559d9dd33cb
parentace7ce1025402a9a47f70e72ac60a5932b22199f
net/http: document that after Hijack, Request.Body is invalid

We can make it panic with a more explicit and readable error message
during Go 1.10, but document it for now. This has always been the
case; it's not a new rule.

Updates #20933

Change-Id: I53c1fefb47a8f4aae0bb32fa742afa3a2ed20e8a
Reviewed-on: https://go-review.googlesource.com/50634
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
src/net/http/server.go