]> Cypherpunks repositories - gostls13.git/commit
net/textproto: accept multi-line error messages
authorDaniel Speichert <daniel@speichert.pl>
Tue, 29 Dec 2015 15:46:40 +0000 (16:46 +0100)
committerRuss Cox <rsc@golang.org>
Fri, 8 Jan 2016 16:32:42 +0000 (16:32 +0000)
commit8ae584f21e32ab1a07d9d5d4d39cb5f7530c49df
tree234b57d95df44789b5b20fb823207115b0bc57d4
parentbb8c2e19a7fe2ca2283eca44dba2047c9f4307fe
net/textproto: accept multi-line error messages

Ads documentation for both formats of messages accepted by
ReadResponse(). Validity of message should not be altered by
the validation process. On message with unexpected code,
a properly formatted message was not fully read.

Fixes #10230

Change-Id: Ic0b473059a68ab624ce0525e359d0f5d0b8d2117
Reviewed-on: https://go-review.googlesource.com/18172
Reviewed-by: Russ Cox <rsc@golang.org>
src/net/textproto/reader.go
src/net/textproto/reader_test.go