]> Cypherpunks repositories - gostls13.git/commit
http: fix Content-Type of file extension.
authorYasuhiro Matsumoto <mattn.jp@gmail.com>
Wed, 13 Jul 2011 21:39:33 +0000 (14:39 -0700)
committerRuss Cox <rsc@golang.org>
Wed, 13 Jul 2011 21:39:33 +0000 (14:39 -0700)
commit2012290c7e1872a1bf3faa848898761cb6958b61
tree2e0787c52cf804c3f088c432a07f4e9db5f40747
parent350504559e12272824d31e4d942d66929ba027c5
http: fix Content-Type of file extension.
ServeFile() pass empty string to serveFile(). serveFile() should get
file extension via joining root and filename.

R=bradfitz, rsc
CC=golang-dev
https://golang.org/cl/4654089
src/pkg/http/fs.go
src/pkg/http/fs_test.go
src/pkg/http/testdata/style.css [new file with mode: 0644]