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

Issue 7369045: code review 7369045: net/http, net/url: deal with URL.Opaque beginning with // (Closed)

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

Description

net/http, net/url: deal with URL.Opaque beginning with // Update issue 4860

Patch Set 1 #

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

Total comments: 2

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -0 lines) Patch
M src/pkg/net/http/requestwrite_test.go View 1 1 chunk +38 lines, -0 lines 0 comments Download
M src/pkg/net/url/url.go View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/pkg/net/url/url_test.go View 1 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 15
bradfitz
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 3 months ago (2013-02-21 04:20:05 UTC) #1
adg
https://codereview.appspot.com/7369045/diff/2001/src/pkg/net/http/requestwrite_test.go File src/pkg/net/http/requestwrite_test.go (right): https://codereview.appspot.com/7369045/diff/2001/src/pkg/net/http/requestwrite_test.go#newcode390 src/pkg/net/http/requestwrite_test.go:390: WantWrite: "GET http://y.google.com/%2F/%2F/ HTTP/1.1\r\n" + wow, this is correct?
11 years, 3 months ago (2013-02-21 04:33:13 UTC) #2
bradfitz
On Wed, Feb 20, 2013 at 8:33 PM, <adg@golang.org> wrote: > > http://y.google.com/%2F/%2F/ HTTP/1.1\r\n" + ...
11 years, 3 months ago (2013-02-21 04:42:23 UTC) #3
adg
LGTM Shrug. On 21 February 2013 15:42, Brad Fitzpatrick <bradfitz@golang.org> wrote: > > > On ...
11 years, 3 months ago (2013-02-21 04:44:09 UTC) #4
bradfitz
I can wait for another shrug. :) On Feb 20, 2013 8:44 PM, "Andrew Gerrand" ...
11 years, 3 months ago (2013-02-21 04:55:24 UTC) #5
rsc
what's the motivation for case #2? https://codereview.appspot.com/7369045/diff/2001/src/pkg/net/http/requestwrite_test.go File src/pkg/net/http/requestwrite_test.go (right): https://codereview.appspot.com/7369045/diff/2001/src/pkg/net/http/requestwrite_test.go#newcode383 src/pkg/net/http/requestwrite_test.go:383: Opaque: "//y.google.com/%2F/%2F/", Not ...
11 years, 2 months ago (2013-02-21 18:43:15 UTC) #6
rsc
Still not sure about the motivation, even after rereading the thread and the issue, but ...
11 years, 2 months ago (2013-02-21 18:46:37 UTC) #7
bradfitz
On Thu, Feb 21, 2013 at 10:46 AM, Russ Cox <rsc@golang.org> wrote: > Still not ...
11 years, 2 months ago (2013-02-21 18:54:04 UTC) #8
rsc
I'd rather document that RequestURI returns Opaque unmodified if set. That gives people complete control ...
11 years, 2 months ago (2013-02-21 18:55:56 UTC) #9
bradfitz
On Thu, Feb 21, 2013 at 10:54 AM, Brad Fitzpatrick <bradfitz@golang.org>wrote: > On Thu, Feb ...
11 years, 2 months ago (2013-02-21 19:13:41 UTC) #10
campoy
Hi team, I'm not sure I fully understand the subtle differences between RequestURI and String. ...
11 years, 2 months ago (2013-02-21 19:29:14 UTC) #11
rsc
Why not &net.URL{Scheme:"http", Host:"foo.com", Opaque:"http://fo.com/"} ? The scheme and host are needed for Get to ...
11 years, 2 months ago (2013-02-21 19:29:33 UTC) #12
bradfitz
On Thu, Feb 21, 2013 at 11:29 AM, Russ Cox <rsc@golang.org> wrote: > Why not ...
11 years, 2 months ago (2013-02-21 19:39:48 UTC) #13
rsc
LGTM Sorry, I thought the general form was {scheme}://{host}{opaque}, but I reread the docs and ...
11 years, 2 months ago (2013-02-21 19:45:42 UTC) #14
bradfitz
11 years, 2 months ago (2013-02-21 20:01:50 UTC) #15
*** Submitted as https://code.google.com/p/go/source/detail?r=67ff484a1801 ***

net/http, net/url: deal with URL.Opaque beginning with //

Update issue 4860

R=adg, rsc, campoy
CC=golang-dev
https://codereview.appspot.com/7369045
Sign in to reply to this message.

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