]> Cypherpunks repositories - gostls13.git/commit
net/http: use mtime < t+1s to check for unmodified
authorHong Ruiqi <hongruiqi@gmail.com>
Mon, 13 Feb 2012 04:45:19 +0000 (23:45 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 13 Feb 2012 04:45:19 +0000 (23:45 -0500)
commitc58b6ad02203cc0f4ba3cd0a38ce222d177cc75e
treed0190e44b58ab3ae2b5b89ded64a74641041dc10
parent3760213e6e29fd16ab07b41e94276e05ecd86aba
net/http: use mtime < t+1s to check for unmodified

The Date-Modified header truncates sub-second precision, so
use mtime < t+1s instead of mtime <= t to check for unmodified.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5655052
src/pkg/net/http/fs.go