Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2000)

Issue 6300081: code review 6300081: net/http: use index.html modtime (not directory) for If... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 11 months ago by bradfitz
Modified:
11 years, 11 months ago
Reviewers:
CC:
r, rsc, golang-dev
Visibility:
Public.

Description

net/http: use index.html modtime (not directory) for If-Modified-Since Thanks to Håvid Falch for finding the problem. Fixes issue 3414

Patch Set 1 #

Patch Set 2 : diff -r d34766b79c5e https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r d34766b79c5e https://go.googlecode.com/hg/ #

Total comments: 3

Patch Set 4 : diff -r 157c0cca52af https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -3 lines) Patch
M src/pkg/net/http/fs.go View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
M src/pkg/net/http/fs_test.go View 1 2 chunks +117 lines, -0 lines 0 comments Download

Messages

Total messages: 7
bradfitz
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 11 months ago (2012-06-11 15:45:36 UTC) #1
r
http://codereview.appspot.com/6300081/diff/5001/src/pkg/net/http/fs.go File src/pkg/net/http/fs.go (right): http://codereview.appspot.com/6300081/diff/5001/src/pkg/net/http/fs.go#newcode260 src/pkg/net/http/fs.go:260: if checkLastModified(w, r, d.ModTime()) { aren't you still checking ...
11 years, 11 months ago (2012-06-11 15:52:01 UTC) #2
bradfitz
http://codereview.appspot.com/6300081/diff/5001/src/pkg/net/http/fs.go File src/pkg/net/http/fs.go (right): http://codereview.appspot.com/6300081/diff/5001/src/pkg/net/http/fs.go#newcode260 src/pkg/net/http/fs.go:260: if checkLastModified(w, r, d.ModTime()) { On 2012/06/11 15:52:01, r ...
11 years, 11 months ago (2012-06-11 16:01:09 UTC) #3
r
the test seems overbuilt http://codereview.appspot.com/6300081/diff/5001/src/pkg/net/http/fs.go File src/pkg/net/http/fs.go (right): http://codereview.appspot.com/6300081/diff/5001/src/pkg/net/http/fs.go#newcode260 src/pkg/net/http/fs.go:260: if checkLastModified(w, r, d.ModTime()) { ...
11 years, 11 months ago (2012-06-11 16:07:11 UTC) #4
rsc
Code looks fine, but a comment would be nice in the index.html case saying // ...
11 years, 11 months ago (2012-06-13 19:32:17 UTC) #5
bradfitz
On Wed, Jun 13, 2012 at 12:32 PM, <rsc@golang.org> wrote: > Code looks fine, but ...
11 years, 11 months ago (2012-06-13 19:38:06 UTC) #6
bradfitz
11 years, 11 months ago (2012-06-13 21:53:10 UTC) #7
*** Submitted as http://code.google.com/p/go/source/detail?r=c536f328c34b ***

net/http: use index.html modtime (not directory) for If-Modified-Since

Thanks to Håvid Falch for finding the problem.

Fixes issue 3414

R=r, rsc
CC=golang-dev
http://codereview.appspot.com/6300081
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b