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

Issue 4476045: code review 4476045: http: don't Clean query string in relative redirects (Closed)

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

Description

http: don't Clean query string in relative redirects

Patch Set 1 #

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

Total comments: 1

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -0 lines) Patch
M src/pkg/http/serve_test.go View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
M src/pkg/http/server.go View 1 2 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 7
bradfitz
Hello adg, rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years ago (2011-05-06 01:25:28 UTC) #1
kevlar
On 2011/05/06 01:25:28, bradfitz wrote: > Hello adg, rsc (cc: mailto:golang-dev@googlegroups.com), > > I'd like ...
14 years ago (2011-05-06 01:49:11 UTC) #2
r
LGTM
14 years ago (2011-05-06 19:48:08 UTC) #3
bradfitz
Russ, Low priority, but do you remember the motivation for the path.Clean here? Was it ...
14 years ago (2011-05-06 20:18:41 UTC) #4
rsc
LGTM http://codereview.appspot.com/4476045/diff/1001/src/pkg/http/server.go File src/pkg/http/server.go (right): http://codereview.appspot.com/4476045/diff/1001/src/pkg/http/server.go#newcode586 src/pkg/http/server.go:586: query = url[qmark:] if i := strings.Index(url, "?"); ...
14 years ago (2011-05-06 20:46:47 UTC) #5
rsc
I was just trying to fix up unnecessary .. to short circuit some future redirections.
14 years ago (2011-05-06 20:46:57 UTC) #6
bradfitz
14 years ago (2011-05-11 11:30:34 UTC) #7
*** Submitted as http://code.google.com/p/go/source/detail?r=3556fc4657a3 ***

http: don't Clean query string in relative redirects

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

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