]> Cypherpunks repositories - gostls13.git/commit
net/http: ignore extra space between response version and status code
authorAndy Balholm <andybalholm@gmail.com>
Mon, 17 Apr 2017 18:58:30 +0000 (11:58 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 17 Apr 2017 22:32:05 +0000 (22:32 +0000)
commit668cca6cb4fbf217b9e00f306d5e8a6f80134288
treef358c847a12c5cff2c5dd3c197a23c3a978b75fa
parent533ed967c6e842b4f9b9b503d20b3af698a4e022
net/http: ignore extra space between response version and status code

Reading a response with a status line like "HTTP/1.0  401 Unauthorized"
(with two spaces after the version) has been returning an error. Now the
extra space will be ignored.

Fixes #19989

Change-Id: I0c88a6ef7562ba80e2e2635be2070dd1b5b671a7
Reviewed-on: https://go-review.googlesource.com/40933
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/http/response.go
src/net/http/response_test.go