]> Cypherpunks repositories - gostls13.git/commit
http: permit handlers to explicitly remove the Date header
authorBrad Fitzpatrick <bradfitz@golang.org>
Mon, 20 Jun 2011 20:39:03 +0000 (13:39 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 20 Jun 2011 20:39:03 +0000 (13:39 -0700)
commit922ceaddd21289e90b35924b74cc6163a34ab40a
treefadd5d542b7ad549149a648c505c97018317ea83
parentcf201ed6a00223e1e6dd69e884f9bcd25ce2b62c
http: permit handlers to explicitly remove the Date header

We'll do the right thing by default, but people wanting minimal
response sizes can explicitly remove the Date header.
(empty fields aren't written out)

R=rsc
CC=golang-dev
https://golang.org/cl/4634048
src/pkg/http/serve_test.go
src/pkg/http/server.go