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

Issue 4635042: code review 4635042: src/pkg/http/cgi: Handler.Dir for specify working direc... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 9 months ago by mattn
Modified:
13 years, 8 months ago
Reviewers:
CC:
golang-dev_googlecode.com, bradfitz, brainman, golang-dev
Visibility:
Public.

Description

http/cgi: add Handler.Dir to specify working directory

Patch Set 1 #

Patch Set 2 : diff -r dd3913e4b4b9 http://go.googlecode.com/hg/ #

Patch Set 3 : diff -r dd3913e4b4b9 http://go.googlecode.com/hg/ #

Total comments: 4

Patch Set 4 : diff -r 9fef9a578278 http://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 9fef9a578278 http://go.googlecode.com/hg/ #

Patch Set 6 : diff -r 4795e1786223 http://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 4795e1786223 http://go.googlecode.com/hg #

Patch Set 8 : diff -r 4795e1786223 http://go.googlecode.com/hg #

Total comments: 6

Patch Set 9 : diff -r 4795e1786223 http://go.googlecode.com/hg #

Total comments: 6

Patch Set 10 : diff -r 7768f924c335 http://go.googlecode.com/hg/ #

Patch Set 11 : diff -r 7768f924c335 http://go.googlecode.com/hg/ #

Patch Set 12 : diff -r 7768f924c335 http://go.googlecode.com/hg/ #

Patch Set 13 : diff -r b295b8bda20b http://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -6 lines) Patch
M src/pkg/http/cgi/host.go View 1 2 3 4 chunks +18 lines, -6 lines 0 comments Download
M src/pkg/http/cgi/host_test.go View 1 2 3 4 5 6 7 8 9 10 2 chunks +76 lines, -0 lines 0 comments Download
M src/pkg/http/cgi/testdata/test.cgi View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 23
mattn
Hello golang-dev@googlecode.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to http://go.googlecode.com/hg/
13 years, 9 months ago (2011-06-16 11:13:59 UTC) #1
bradfitz
Could you add a new test, too? http://codereview.appspot.com/4635042/diff/3001/src/pkg/http/cgi/host.go File src/pkg/http/cgi/host.go (right): http://codereview.appspot.com/4635042/diff/3001/src/pkg/http/cgi/host.go#newcode49 src/pkg/http/cgi/host.go:49: Dir string ...
13 years, 9 months ago (2011-06-16 21:50:59 UTC) #2
mattn
http://codereview.appspot.com/4635042/diff/3001/src/pkg/http/cgi/host.go File src/pkg/http/cgi/host.go (right): http://codereview.appspot.com/4635042/diff/3001/src/pkg/http/cgi/host.go#newcode49 src/pkg/http/cgi/host.go:49: Dir string // working directory of CGI, if empty, ...
13 years, 9 months ago (2011-06-16 23:52:24 UTC) #3
mattn
Hello golang-dev@googlecode.com, bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 9 months ago (2011-06-16 23:52:40 UTC) #4
bradfitz
Were you going to add a test too? On Thu, Jun 16, 2011 at 4:52 ...
13 years, 9 months ago (2011-06-16 23:55:29 UTC) #5
mattn
Hello golang-dev@googlecode.com, bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 9 months ago (2011-06-17 00:55:50 UTC) #6
bradfitz
http://codereview.appspot.com/4635042/diff/5003/src/pkg/http/cgi/host_test.go File src/pkg/http/cgi/host_test.go (right): http://codereview.appspot.com/4635042/diff/5003/src/pkg/http/cgi/host_test.go#newcode314 src/pkg/http/cgi/host_test.go:314: Dir: cwd, you should make one of the tests ...
13 years, 9 months ago (2011-06-17 01:04:54 UTC) #7
mattn
http://codereview.appspot.com/4635042/diff/5003/src/pkg/http/cgi/host_test.go File src/pkg/http/cgi/host_test.go (right): http://codereview.appspot.com/4635042/diff/5003/src/pkg/http/cgi/host_test.go#newcode314 src/pkg/http/cgi/host_test.go:314: Dir: cwd, On 2011/06/17 01:04:55, bradfitz wrote: > you ...
13 years, 9 months ago (2011-06-17 01:12:27 UTC) #8
bradfitz
http://codereview.appspot.com/4635042/diff/19001/src/pkg/http/cgi/host_test.go File src/pkg/http/cgi/host_test.go (right): http://codereview.appspot.com/4635042/diff/19001/src/pkg/http/cgi/host_test.go#newcode321 src/pkg/http/cgi/host_test.go:321: cwd, _ = os.Getwd() this is same as the ...
13 years, 9 months ago (2011-06-20 15:18:34 UTC) #9
mattn
http://codereview.appspot.com/4635042/diff/19001/src/pkg/http/cgi/host_test.go File src/pkg/http/cgi/host_test.go (right): http://codereview.appspot.com/4635042/diff/19001/src/pkg/http/cgi/host_test.go#newcode321 src/pkg/http/cgi/host_test.go:321: cwd, _ = os.Getwd() On 2011/06/20 15:18:35, bradfitz wrote: ...
13 years, 9 months ago (2011-06-21 00:04:23 UTC) #10
bradfitz
Yes, you've tested that Input1 => Output1 and Input2 => Output1 I want to see: ...
13 years, 9 months ago (2011-06-21 00:09:48 UTC) #11
mattn
The first of expectedMap is {cwd: "$GOROOT/src/pkg/http/cgi" } (I guess this is meaning Output1) But ...
13 years, 9 months ago (2011-06-21 00:15:37 UTC) #12
bradfitz
LGTM http://codereview.appspot.com/4635042/diff/19001/src/pkg/http/cgi/host_test.go File src/pkg/http/cgi/host_test.go (right): http://codereview.appspot.com/4635042/diff/19001/src/pkg/http/cgi/host_test.go#newcode322 src/pkg/http/cgi/host_test.go:322: cwd = filepath.Join(cwd, "testdata") I stupid and missed ...
13 years, 8 months ago (2011-06-22 18:04:52 UTC) #13
bradfitz
Never, not LGTM... found a bug in the test. Also, change the first line of ...
13 years, 8 months ago (2011-06-22 18:12:24 UTC) #14
mattn
> Did you test this on Windows? Just to make sure I'm not crazy I ...
13 years, 8 months ago (2011-06-23 02:05:51 UTC) #15
bradfitz
Hmm, way too much "if syscall.OS == "windows"" in this CL. It should be runtime.GOOS ...
13 years, 8 months ago (2011-06-23 03:01:46 UTC) #16
mattn
I updated this CL. I tried to make this patch more simply. But, after all, ...
13 years, 8 months ago (2011-06-23 03:55:46 UTC) #17
bradfitz
This fails for me if I patch it in to my Windows box. === RUN ...
13 years, 8 months ago (2011-06-24 23:33:43 UTC) #18
brainman
On 2011/06/24 23:33:43, bradfitz wrote: > > I still don't understand why you're doing this ...
13 years, 8 months ago (2011-06-25 08:20:48 UTC) #19
mattn
> PS: Don't know why the test fails. I know nothing about perl. Thanks for ...
13 years, 8 months ago (2011-06-26 13:40:04 UTC) #20
mattn
PTAL On 2011/06/26 13:40:04, mattn wrote: > > PS: Don't know why the test fails. ...
13 years, 8 months ago (2011-06-30 07:38:25 UTC) #21
bradfitz
*** Submitted as http://code.google.com/p/go/source/detail?r=04322400fed3 *** http/cgi: add Handler.Dir to specify working directory R=golang-dev, bradfitz, alex.brainman ...
13 years, 8 months ago (2011-06-30 16:44:32 UTC) #22
bradfitz
13 years, 8 months ago (2011-06-30 16:45:43 UTC) #23
LGTM

Tests pass on Windows and Linux.

On Thu, Jun 30, 2011 at 9:44 AM, <bradfitz@golang.org> wrote:

> *** Submitted as
>
http://code.google.com/p/go/**source/detail?r=04322400fed3<http://code.google...
>
>
> http/cgi: add Handler.Dir to specify working directory
>
> R=golang-dev, bradfitz, alex.brainman
> CC=golang-dev
>
> http://codereview.appspot.com/**4635042<http://codereview.appspot.com/4635042>
>
> Committer: Brad Fitzpatrick <bradfitz@golang.org>
>
>
>
>
http://codereview.appspot.com/**4635042/<http://codereview.appspot.com/4635042/>
>
Sign in to reply to this message.

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