]> Cypherpunks repositories - gostls13.git/commit
net/http: make ServeContent errors return more specific HTTP status codes
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 21 Apr 2015 20:36:44 +0000 (13:36 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 22 Apr 2015 10:35:44 +0000 (10:35 +0000)
commit5fa2d9915f8311d7996e93a3a42cf438278e3886
treef9bf2e940b748b1cef799511b0dcdea3ed00ccbb
parent58c1c011a694cc9a813b34c83eebab223edae1fd
net/http: make ServeContent errors return more specific HTTP status codes

Previously all errors were 404 errors, even if the real error had
nothing to do with a file being non-existent.

Fixes #10283

Change-Id: I5b08b471a9064c347510cfcf8557373704eef7c0
Reviewed-on: https://go-review.googlesource.com/9200
Reviewed-by: Daniel Morsing <daniel.morsing@gmail.com>
src/net/http/fs.go
src/net/http/fs_test.go