]> Cypherpunks repositories - gostls13.git/commit
net/http: don't reject 0-lengthed bodies with Expect 100-continue
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 11 Apr 2014 05:25:31 +0000 (22:25 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 11 Apr 2014 05:25:31 +0000 (22:25 -0700)
commit10a273196b5aed2d72d50573bfc5c0bdb2e631a2
tree8677f30776d12048bd2a0ee7a7514a231fc8ed01
parent50368e9a6c2754875ebd783bfdb987f635cff518
net/http: don't reject 0-lengthed bodies with Expect 100-continue

I was implementing rules from RFC 2616. The rules are apparently useless,
ambiguous, and too strict for common software on the Internet. (e.g. curl)

Add more tests, including a test of a chunked request.

Fixes #7625

LGTM=dsymonds
R=golang-codereviews, dsymonds
CC=adg, golang-codereviews, rsc
https://golang.org/cl/84480045
src/pkg/net/http/serve_test.go
src/pkg/net/http/server.go