diff options
| author | Brad Fitzpatrick <bradfitz@golang.org> | 2015-02-12 08:42:11 -0800 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2015-03-23 02:16:56 +0000 |
| commit | a0fb8f8cce1d3b239f83c198204b616aab136510 (patch) | |
| tree | ed872522f9dd598fa94d9cff50e3e31ea92355d9 /src/syscall/exec_linux.go | |
| parent | 25bf792197ff737fc84c8b1dd46be8a6b066333a (diff) | |
| download | go-a0fb8f8cce1d3b239f83c198204b616aab136510.tar.xz | |
net/http: ignore the Unix epoch time in ServeContent
ServeContent ignored zero time.Time{} values when generating
Last-Modified response headers and checking If-Modified-Since request
headers. Do the same for a time.Time representing the Unix epoch zero
value, as this is a common bogus value. Callers who really want to
send that value (incredibly unlikely) can add a nanosecond to it and
it will be truncated to second granularity anyway.
Fixes #9842
Change-Id: I69f697bfc4017404a92a34e3fe57e2711c1e299d
Reviewed-on: https://go-review.googlesource.com/7915
Reviewed-by: David Symonds <dsymonds@golang.org>
Diffstat (limited to 'src/syscall/exec_linux.go')
0 files changed, 0 insertions, 0 deletions
