]> Cypherpunks repositories - gostls13.git/commit
net/http: use the correct error variable in serveFile
authorBrad Fitzpatrick <bradfitz@golang.org>
Mon, 19 Oct 2015 14:45:50 +0000 (14:45 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 19 Oct 2015 15:26:35 +0000 (15:26 +0000)
commita8645e283b1961133dea205a62d472094f839c05
tree24071b1681dbb824d765bc5402520f8f749cf5f0
parent5d88323fa6c2c39891bf59d8674c338b0ed3902e
net/http: use the correct error variable in serveFile

It was generating the wrong error message, always defaulting to "500
Internal Server Error", since the err variable used was always nil.

Fixes #12991

Change-Id: I94b0e516409c131ff3b878bcb91e65f0259ff077
Reviewed-on: https://go-review.googlesource.com/16060
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/http/export_test.go
src/net/http/fs.go
src/net/http/fs_test.go