]> Cypherpunks repositories - gostls13.git/commit
http: reply to Expect 100-continue requests automatically
authorBrad Fitzpatrick <brad@danga.com>
Wed, 16 Jun 2010 17:15:39 +0000 (10:15 -0700)
committerRuss Cox <rsc@golang.org>
Wed, 16 Jun 2010 17:15:39 +0000 (10:15 -0700)
commit743f818218c92822ee56d35e816d86a2205ff17a
treedd30ceea23ae9db64114f72d2547ea1ee077ddae
parent93ea2ae362d77b127c7f8235621e1adb4776efa1
http: reply to Expect 100-continue requests automatically

This CL replaces my earlier https://golang.org/cl/1640044/show
in which Continue handling was explicit.  Instead, this CL makes
it automatic.  Reading from Body() is an implicit acknowledgement
that the request headers were fine and the body is wanted.  In that
case, the 100 Continue response is written automatically when the
request continues the "Expect: 100-continue" header.

R=rsc, adg
CC=golang-dev
https://golang.org/cl/1610042
src/pkg/http/request.go
src/pkg/http/server.go