]> Cypherpunks repositories - gostls13.git/commit
http: fix Content-Range and Content-Length in response
authorClement Skau <clementskau@gmail.com>
Wed, 19 Jan 2011 15:05:48 +0000 (10:05 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 19 Jan 2011 15:05:48 +0000 (10:05 -0500)
commit49741f23d5938eff80f2c8ca4b16c9f1b0e15f7d
tree3eeaaea552fc3226f701174690bd2e16029470c7
parent43582bad33f18ea3f88252574810aee849380590
http: fix Content-Range and Content-Length in response

RFC2616 sections 4.4 and 14.16:
  * Cannot use Content-Length with non-identity Transfer-Encoding
  * Content-Range response is "bytes x-y/z" not "x-y/z"

R=rsc
CC=golang-dev
https://golang.org/cl/4018041
src/pkg/http/fs.go
src/pkg/http/fs_test.go
src/pkg/http/server.go