File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1126,8 +1126,8 @@ func readRequest(b *bufio.Reader) (req *Request, err error) {
1126
1126
// MaxBytesReader is similar to io.LimitReader but is intended for
1127
1127
// limiting the size of incoming request bodies. In contrast to
1128
1128
// io.LimitReader, MaxBytesReader's result is a ReadCloser, returns a
1129
- // MaxBytesError for a Read beyond the limit, and closes the
1130
- // underlying reader when its Close method is called.
1129
+ // non-nil error of type * MaxBytesError for a Read beyond the limit,
1130
+ // and closes the underlying reader when its Close method is called.
1131
1131
//
1132
1132
// MaxBytesReader prevents clients from accidentally or maliciously
1133
1133
// sending a large request and wasting server resources. If possible,
You can’t perform that action at this time.
0 commit comments