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

Issue 4002041: code review 4002041: http: support for relative URLs (Closed)

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

Description

http: support for relative URLs

Patch Set 1 #

Patch Set 2 : code review 4002041: http: add url.ResolveRefence(); base + relative URL => ... #

Patch Set 3 : code review 4002041: http: add url.ResolveRefence(); base + relative URL => ... #

Total comments: 2

Patch Set 4 : code review 4002041: http: support for relative URLs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -94 lines) Patch
M src/pkg/http/url.go View 1 2 3 2 chunks +96 lines, -56 lines 0 comments Download
M src/pkg/http/url_test.go View 1 2 2 chunks +114 lines, -38 lines 0 comments Download

Messages

Total messages: 13
bradfitz
Hello rsc, adg (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 5 months ago (2011-01-13 23:53:12 UTC) #1
bradfitz
Pre-emptive defense about seemingly duplicating http.CanonicalPath: I couldn't use CanonicalPath because RFC 2396 says explicitly: ...
14 years, 5 months ago (2011-01-13 23:59:49 UTC) #2
rsc
I think it's okay to delete CanonicalPath. It was for this case and it clearly ...
14 years, 5 months ago (2011-01-14 15:31:15 UTC) #3
bradfitz
Hello rsc, adg (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 5 months ago (2011-01-14 17:31:57 UTC) #4
bradfitz
All done. PTAL. Questions: -- should we return an error when !base.IsAbs() ? ParseURL returns ...
14 years, 5 months ago (2011-01-14 17:34:10 UTC) #5
rsc
looks right to me. http://codereview.appspot.com/4002041/diff/8001/src/pkg/http/url.go File src/pkg/http/url.go (right): http://codereview.appspot.com/4002041/diff/8001/src/pkg/http/url.go#newcode551 src/pkg/http/url.go:551: // base or reference. // ...
14 years, 5 months ago (2011-01-18 19:50:08 UTC) #6
rsc
> -- should we return an error when !base.IsAbs() ? ParseURL returns an error > ...
14 years, 5 months ago (2011-01-18 19:50:40 UTC) #7
rsc
btw, please run hg change 4002041 and edit the CL description to fix the spelling ...
14 years, 5 months ago (2011-01-18 19:53:21 UTC) #8
bradfitzgoog
Done. On Tue, Jan 18, 2011 at 11:53 AM, Russ Cox <rsc@golang.org> wrote: > btw, ...
14 years, 5 months ago (2011-01-18 23:30:34 UTC) #9
bradfitz
Hello rsc, adg, bradfitzwork (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 5 months ago (2011-01-18 23:31:55 UTC) #10
bradfitz
http://codereview.appspot.com/4002041/diff/8001/src/pkg/http/url.go File src/pkg/http/url.go (right): http://codereview.appspot.com/4002041/diff/8001/src/pkg/http/url.go#newcode551 src/pkg/http/url.go:551: // base or reference. On 2011/01/18 19:50:08, rsc wrote: ...
14 years, 5 months ago (2011-01-18 23:32:24 UTC) #11
rsc
LGTM
14 years, 5 months ago (2011-01-19 20:13:25 UTC) #12
rsc
14 years, 5 months ago (2011-01-19 20:13:44 UTC) #13
*** Submitted as 73c8f1823c79 ***

http: support for relative URLs

R=rsc, adg
CC=golang-dev
http://codereview.appspot.com/4002041

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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