]> Cypherpunks repositories - gostls13.git/commit
net/textproto: accept bad MIME headers as browsers do
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 22 Feb 2012 00:13:59 +0000 (11:13 +1100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 22 Feb 2012 00:13:59 +0000 (11:13 +1100)
commit31e94293fc3f57f58bd0dae0698f0914b3e9a9e7
treea6f46e035dfac8cb9fc52cc5d7da81b1d0c8ee72
parentfc3797a491ef01a61e8b3e9144ef28622a9efe06
net/textproto: accept bad MIME headers as browsers do

Accept certain non-compliant response headers
(in particular, when spaces preceed the colon).
All major browser and curl seem to support this,
and at least one webserver seems to send these.

*shrug*

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5690059
src/pkg/net/textproto/reader.go
src/pkg/net/textproto/reader_test.go