]> Cypherpunks repositories - gostls13.git/commit
net/http: send correct time in Date header.
authorDmitry Chestnykh <dchest@gmail.com>
Mon, 23 Sep 2013 02:53:55 +0000 (19:53 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 23 Sep 2013 02:53:55 +0000 (19:53 -0700)
commitc2b7fb3902b9069e24a79343bcad464941e54625
tree3473d6a9d320ef67a2875f720bad72aa9e2562ce
parente82031618aff8c69ed09970cce66b9fcaaa939b8
net/http: send correct time in Date header.

Date header indicated that it contained GMT time,
however it actually sent local time. Fixed by
converting time to UTC.

Also fixes incorrect comment in appendTime().

Regression since CL 9432046.

R=golang-dev, dave, bradfitz
CC=golang-dev
https://golang.org/cl/13386047
src/pkg/net/http/export_test.go
src/pkg/net/http/serve_test.go
src/pkg/net/http/server.go