]> Cypherpunks repositories - gostls13.git/commit
http: ServeFile to handle Range header for partial requests
authorAndrew Gerrand <adg@golang.org>
Thu, 9 Dec 2010 21:51:13 +0000 (08:51 +1100)
committerAndrew Gerrand <adg@golang.org>
Thu, 9 Dec 2010 21:51:13 +0000 (08:51 +1100)
commitaa9c213e564d58026fd6f822d43c8f3f6e66c68b
treebaf181485b6f53a04bd251e05b0b0c9f1a3d043c
parent8984fa8fceb79ffbff74f6bc640216502c769a9a
http: ServeFile to handle Range header for partial requests
and send Content-Length.

Also includes some testing of the server code.

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