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

Issue 3910042: code review 3910042: http: fix scheme-relative URL parsing; add ParseRequestURL (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 10 months ago by brad_danga_com
Modified:
13 years, 10 months ago
Reviewers:
CC:
rsc, adg, dangabrad, bradfitzgoog, golang-dev
Visibility:
Public.

Description

http: fix scheme-relative URL parsing; add ParseRequestURL Also adds some tests for Issue 900 which was the reason the current URL parsing is broken. (the previous fix was wrong)

Patch Set 1 #

Patch Set 2 : code review 3910042: http: fix handling of scheme-relative URL parsing #

Total comments: 4

Patch Set 3 : code review 3910042: http: fix handling of scheme-relative URL parsing #

Patch Set 4 : code review 3910042: http: fix scheme-relative URL parsing; add ParseRequestURL #

Patch Set 5 : code review 3910042: http: fix scheme-relative URL parsing; add ParseRequestURL #

Total comments: 2

Patch Set 6 : code review 3910042: http: fix scheme-relative URL parsing; add ParseRequestURL #

Total comments: 2

Patch Set 7 : code review 3910042: http: fix scheme-relative URL parsing; add ParseRequestURL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -9 lines) Patch
M src/pkg/http/readrequest_test.go View 1 2 1 chunk +35 lines, -0 lines 0 comments Download
M src/pkg/http/request.go View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/http/serve_test.go View 2 chunks +85 lines, -0 lines 0 comments Download
M src/pkg/http/url.go View 1 2 3 4 5 6 4 chunks +28 lines, -2 lines 0 comments Download
M src/pkg/http/url_test.go View 1 2 3 4 5 3 chunks +74 lines, -6 lines 0 comments Download

Messages

Total messages: 14
brad_danga_com
Hello rsc, adg (cc: golang-dev@googlegroups.com), I'd like you to review this change.
13 years, 10 months ago (2011-01-10 19:01:09 UTC) #1
adg
http://codereview.appspot.com/3910042/diff/2001/src/pkg/http/url.go File src/pkg/http/url.go (right): http://codereview.appspot.com/3910042/diff/2001/src/pkg/http/url.go#newcode536 src/pkg/http/url.go:536: func cleanURLForHTTPRequest(url *URL) { I'm a little uncomfortable with ...
13 years, 10 months ago (2011-01-11 02:44:56 UTC) #2
rsc
http://codereview.appspot.com/3910042/diff/2001/src/pkg/http/url.go File src/pkg/http/url.go (right): http://codereview.appspot.com/3910042/diff/2001/src/pkg/http/url.go#newcode531 src/pkg/http/url.go:531: // cleanURLForRequest cleans URLs as parsed from ReadRequest. I ...
13 years, 10 months ago (2011-01-11 16:08:21 UTC) #3
brad_danga_com
Hello rsc, adg (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 10 months ago (2011-01-11 20:08:14 UTC) #4
rsc
Sorry for the runaround but I think you need to tell ParseURL to do the ...
13 years, 10 months ago (2011-01-11 20:18:11 UTC) #5
dangabrad
Yeah, sounds good. I was talking with adg about going that route too. Will update. ...
13 years, 10 months ago (2011-01-11 20:24:37 UTC) #6
brad_danga_com
Hello rsc, adg, dangabrad (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 10 months ago (2011-01-11 22:58:30 UTC) #7
brad_danga_com
Hello rsc, adg, dangabrad (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 10 months ago (2011-01-11 23:07:05 UTC) #8
adg
LGTM Much better. Leaving for rsc. http://codereview.appspot.com/3910042/diff/19001/src/pkg/http/url_test.go File src/pkg/http/url_test.go (right): http://codereview.appspot.com/3910042/diff/19001/src/pkg/http/url_test.go#newcode341 src/pkg/http/url_test.go:341: tests := []struct ...
13 years, 10 months ago (2011-01-13 05:16:27 UTC) #9
brad_danga_com
Hello rsc, adg, dangabrad (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 10 months ago (2011-01-13 20:11:48 UTC) #10
bradfitzgoog
PTAL http://codereview.appspot.com/3910042/diff/19001/src/pkg/http/url_test.go File src/pkg/http/url_test.go (right): http://codereview.appspot.com/3910042/diff/19001/src/pkg/http/url_test.go#newcode341 src/pkg/http/url_test.go:341: tests := []struct { On 2011/01/13 05:16:27, adg ...
13 years, 10 months ago (2011-01-13 20:12:08 UTC) #11
rsc
lgtm; please make tiny comment changes below http://codereview.appspot.com/3910042/diff/30001/src/pkg/http/url.go File src/pkg/http/url.go (right): http://codereview.appspot.com/3910042/diff/30001/src/pkg/http/url.go#newcode393 src/pkg/http/url.go:393: // ParseRequestURL ...
13 years, 10 months ago (2011-01-13 20:53:52 UTC) #12
brad_danga_com
Hello rsc, adg, dangabrad, bradfitzwork (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 10 months ago (2011-01-13 21:12:52 UTC) #13
adg
13 years, 10 months ago (2011-01-13 22:10:38 UTC) #14
*** Submitted as http://code.google.com/p/go/source/detail?r=2df40d9601d2 ***

http: fix scheme-relative URL parsing; add ParseRequestURL

Also adds some tests for Issue 900 which was the reason
the current URL parsing is broken.  (the previous fix
was wrong)

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

Committer: Andrew Gerrand <adg@golang.org>
Sign in to reply to this message.

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