Commit 755fd93b authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

net/http: delete vestigial method

Fixes #19850

Change-Id: I8c86e288159408c687c2a85f458ade282adae450
Reviewed-on: https://go-review.googlesource.com/45077
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent 766e1ae3
......@@ -1043,11 +1043,6 @@ type maxBytesReader struct {
err error // sticky error
}
func (l *maxBytesReader) tooLarge() (n int, err error) {
l.err = errors.New("http: request body too large")
return 0, l.err
}
func (l *maxBytesReader) Read(p []byte) (n int, err error) {
if l.err != nil {
return 0, l.err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment